Skip to content

Commit 622296d

Browse files
committed
Added .NET 7 project tests
1 parent 5b732a8 commit 622296d

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

tests/Buildalyzer.Tests/Integration/SimpleProjectsFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public class SimpleProjectsFixture
4444
@"SdkNet6Exe\SdkNet6Exe.csproj",
4545
@"SdkNet6SelfContained\SdkNet6SelfContained.csproj",
4646
@"SdkNet6ImplicitUsings\SdkNet6ImplicitUsings.csproj",
47+
@"SdkNet7Project\SdkNet7Project.csproj",
4748
@"SdkNetCore2ProjectImport\SdkNetCore2ProjectImport.csproj",
4849
@"SdkNetCore2ProjectWithReference\SdkNetCore2ProjectWithReference.csproj",
4950
@"SdkNetCore2ProjectWithImportedProps\SdkNetCore2ProjectWithImportedProps.csproj",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace SdkNet7Project;
2+
3+
public class Class1
4+
{
5+
public void Foo()
6+
{
7+
Console.WriteLine("Bar");
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
</Project>

tests/projects/TestProjects.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorClassLibraryTest", "Ra
5656
EndProject
5757
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResponseFile", "ResponseFile\ResponseFile.csproj", "{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}"
5858
EndProject
59+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkNet7Project", "SdkNet7Project\SdkNet7Project.csproj", "{8862BA17-36B7-470E-B293-D02E18FD5E4D}"
60+
EndProject
5961
Global
6062
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6163
Debug|Any CPU = Debug|Any CPU
@@ -166,6 +168,10 @@ Global
166168
{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
167169
{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
168170
{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}.Release|Any CPU.Build.0 = Release|Any CPU
171+
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
172+
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
173+
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
174+
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Release|Any CPU.Build.0 = Release|Any CPU
169175
EndGlobalSection
170176
GlobalSection(SolutionProperties) = preSolution
171177
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)