Skip to content

Commit

Permalink
Added .NET 7 project tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Sep 1, 2023
1 parent 5b732a8 commit 622296d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class SimpleProjectsFixture
@"SdkNet6Exe\SdkNet6Exe.csproj",
@"SdkNet6SelfContained\SdkNet6SelfContained.csproj",
@"SdkNet6ImplicitUsings\SdkNet6ImplicitUsings.csproj",
@"SdkNet7Project\SdkNet7Project.csproj",
@"SdkNetCore2ProjectImport\SdkNetCore2ProjectImport.csproj",
@"SdkNetCore2ProjectWithReference\SdkNetCore2ProjectWithReference.csproj",
@"SdkNetCore2ProjectWithImportedProps\SdkNetCore2ProjectWithImportedProps.csproj",
Expand Down
9 changes: 9 additions & 0 deletions tests/projects/SdkNet7Project/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SdkNet7Project;

public class Class1
{
public void Foo()
{
Console.WriteLine("Bar");
}
}
9 changes: 9 additions & 0 deletions tests/projects/SdkNet7Project/SdkNet7Project.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions tests/projects/TestProjects.sln
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorClassLibraryTest", "Ra
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResponseFile", "ResponseFile\ResponseFile.csproj", "{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkNet7Project", "SdkNet7Project\SdkNet7Project.csproj", "{8862BA17-36B7-470E-B293-D02E18FD5E4D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -166,6 +168,10 @@ Global
{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B18DD8E6-9D47-4FDD-90EA-8F9C6789BE3A}.Release|Any CPU.Build.0 = Release|Any CPU
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8862BA17-36B7-470E-B293-D02E18FD5E4D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 622296d

Please sign in to comment.