forked from dotnet/test-templates
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enables 'source-build', which makes it easier to build the entire shipping .NET SDK from source. This is the first and second step of arcade-powered-source-build: https://github.com/dotnet/source-build/blob/master/Documentation/planning/arcade-powered-source-build/README.md See dotnet/sourcelink#692 for a similar PR, that this is based on. Aside from arcade-specific changes, it also makes all `.sh` files executable to make this build under Linux/macOS. The rename from LICENSE to LICENSE.txt is a workaround for NuGet/Home#7601.
- Loading branch information
Showing
28 changed files
with
253 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<GitHubRepositoryName>test-templates</GitHubRepositoryName> | ||
<SourceBuildManagedOnly>true</SourceBuildManagedOnly> | ||
</PropertyGroup> | ||
|
||
<Target Name="ApplySourceBuildPatchFiles" | ||
Condition=" | ||
'$(ArcadeBuildFromSource)' == 'true'" | ||
AfterTargets="PrepareInnerSourceBuildRepoRoot"> | ||
|
||
<ItemGroup> | ||
<SourceBuildPatchFile Include="$(RepositoryEngineeringDir)source-build-patches\*.patch" /> | ||
</ItemGroup> | ||
|
||
<Exec | ||
Command="git apply --ignore-whitespace --whitespace=nowarn "%(SourceBuildPatchFile.FullPath)"" | ||
WorkingDirectory="$(CurrentRepoSourceBuildSourceDir)" | ||
Condition="'@(SourceBuildPatchFile)' != ''" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<UsageData> | ||
<IgnorePatterns> | ||
<UsagePattern IdentityGlob="*/*" /> | ||
</IgnorePatterns> | ||
</UsageData> |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
157 changes: 157 additions & 0 deletions
157
eng/source-build-patches/0002-Remove-test-template-tests.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
From 21884b9bf6eedd87e085ae3765ea20c69be85f8c Mon Sep 17 00:00:00 2001 | ||
From: Chris Rummel <crummel@microsoft.com> | ||
Date: Thu, 22 Oct 2020 10:26:14 -0500 | ||
Subject: [PATCH 2/2] Remove test-template tests | ||
|
||
--- | ||
Templates/MSTestTemplates.sln | 43 ------------------- | ||
WizardExtensions/WizardExtensions.sln | 40 ----------------- | ||
eng/Build.props | 3 -- | ||
...crosoft.TestTemplates.Acceptance.Tests.sln | 25 ----------- | ||
4 files changed, 111 deletions(-) | ||
delete mode 100644 Templates/MSTestTemplates.sln | ||
delete mode 100644 WizardExtensions/WizardExtensions.sln | ||
delete mode 100644 test/Microsoft.TestTemplates.Acceptance.Tests.sln | ||
|
||
diff --git a/Templates/MSTestTemplates.sln b/Templates/MSTestTemplates.sln | ||
deleted file mode 100644 | ||
index 1ef0e13..0000000 | ||
--- a/Templates/MSTestTemplates.sln | ||
+++ /dev/null | ||
@@ -1,43 +0,0 @@ | ||
- | ||
-Microsoft Visual Studio Solution File, Format Version 12.00 | ||
-# Visual Studio Version 16 | ||
-VisualStudioVersion = 16.0.29613.14 | ||
-MinimumVisualStudioVersion = 10.0.40219.1 | ||
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSTestDesktopVB", "VisualBasic\Desktop\MSTestDesktopVB.csproj", "{1AFFAE1C-BD70-4201-B8C8-3862F56E784B}" | ||
-EndProject | ||
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSTestDesktopCSharp", "CSharp\Desktop\MSTestDesktopCSharp.csproj", "{9E08BE4A-D3C8-4E8D-AFBE-FA571F878464}" | ||
-EndProject | ||
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EdgeDriverTemplate", "CSharp\EdgeDriverTemplate\DotNetFramwork\EdgeDriverTemplate.csproj", "{6E299C10-B3AD-4D9F-BA12-333BEE9CDCC1}" | ||
-EndProject | ||
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EdgeDriverTemplateCore", "CSharp\EdgeDriverTemplate\DotNetCore\EdgeDriverTemplateCore\EdgeDriverTemplateCore.csproj", "{831B6078-B48F-4697-9C70-2EBF6B64CADF}" | ||
-EndProject | ||
-Global | ||
- GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
- Debug|Any CPU = Debug|Any CPU | ||
- Release|Any CPU = Release|Any CPU | ||
- EndGlobalSection | ||
- GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
- {1AFFAE1C-BD70-4201-B8C8-3862F56E784B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {1AFFAE1C-BD70-4201-B8C8-3862F56E784B}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {1AFFAE1C-BD70-4201-B8C8-3862F56E784B}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {1AFFAE1C-BD70-4201-B8C8-3862F56E784B}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- {9E08BE4A-D3C8-4E8D-AFBE-FA571F878464}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {9E08BE4A-D3C8-4E8D-AFBE-FA571F878464}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {9E08BE4A-D3C8-4E8D-AFBE-FA571F878464}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {9E08BE4A-D3C8-4E8D-AFBE-FA571F878464}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- {6E299C10-B3AD-4D9F-BA12-333BEE9CDCC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {6E299C10-B3AD-4D9F-BA12-333BEE9CDCC1}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {6E299C10-B3AD-4D9F-BA12-333BEE9CDCC1}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {6E299C10-B3AD-4D9F-BA12-333BEE9CDCC1}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- {831B6078-B48F-4697-9C70-2EBF6B64CADF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {831B6078-B48F-4697-9C70-2EBF6B64CADF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {831B6078-B48F-4697-9C70-2EBF6B64CADF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {831B6078-B48F-4697-9C70-2EBF6B64CADF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- EndGlobalSection | ||
- GlobalSection(SolutionProperties) = preSolution | ||
- HideSolutionNode = FALSE | ||
- EndGlobalSection | ||
- GlobalSection(ExtensibilityGlobals) = postSolution | ||
- SolutionGuid = {25915A37-21DC-4A13-8A1D-A05332CA3D17} | ||
- EndGlobalSection | ||
-EndGlobal | ||
diff --git a/WizardExtensions/WizardExtensions.sln b/WizardExtensions/WizardExtensions.sln | ||
deleted file mode 100644 | ||
index 18c6e9e..0000000 | ||
--- a/WizardExtensions/WizardExtensions.sln | ||
+++ /dev/null | ||
@@ -1,40 +0,0 @@ | ||
- | ||
-Microsoft Visual Studio Solution File, Format Version 12.00 | ||
-# Visual Studio 15 | ||
-VisualStudioVersion = 15.0.26106.7 | ||
-MinimumVisualStudioVersion = 10.0.40219.1 | ||
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSTestv2UnitTestExtension", "MSTestv2UnitTestExtension\MSTestv2UnitTestExtension.csproj", "{25BFACE8-5009-498E-9B18-3E417C312F26}" | ||
-EndProject | ||
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSTestv2IntelliTestExtension", "MSTestv2IntelliTestExtension\MSTestv2IntelliTestExtension.csproj", "{AAB9F3CF-72D5-419B-B31E-209388BF3E7C}" | ||
-EndProject | ||
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSTestv2IntelliTestExtensionPackage", "MSTestv2IntelliTestExtensionPackage\MSTestv2IntelliTestExtensionPackage.csproj", "{88308F8C-9B6A-4FC1-BA78-F7106987CE56}" | ||
-EndProject | ||
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSTestv2UnitTestExtensionPackage", "MSTestv2UnitTestExtensionPackage\MSTestv2UnitTestExtensionPackage.csproj", "{4348D191-1028-4031-8FCB-B0EF7329271D}" | ||
-EndProject | ||
-Global | ||
- GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
- Debug|Any CPU = Debug|Any CPU | ||
- Release|Any CPU = Release|Any CPU | ||
- EndGlobalSection | ||
- GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
- {25BFACE8-5009-498E-9B18-3E417C312F26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {25BFACE8-5009-498E-9B18-3E417C312F26}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {25BFACE8-5009-498E-9B18-3E417C312F26}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {25BFACE8-5009-498E-9B18-3E417C312F26}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- {AAB9F3CF-72D5-419B-B31E-209388BF3E7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {AAB9F3CF-72D5-419B-B31E-209388BF3E7C}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {AAB9F3CF-72D5-419B-B31E-209388BF3E7C}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {AAB9F3CF-72D5-419B-B31E-209388BF3E7C}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- {88308F8C-9B6A-4FC1-BA78-F7106987CE56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {88308F8C-9B6A-4FC1-BA78-F7106987CE56}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {88308F8C-9B6A-4FC1-BA78-F7106987CE56}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {88308F8C-9B6A-4FC1-BA78-F7106987CE56}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- {4348D191-1028-4031-8FCB-B0EF7329271D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {4348D191-1028-4031-8FCB-B0EF7329271D}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {4348D191-1028-4031-8FCB-B0EF7329271D}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {4348D191-1028-4031-8FCB-B0EF7329271D}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- EndGlobalSection | ||
- GlobalSection(SolutionProperties) = preSolution | ||
- HideSolutionNode = FALSE | ||
- EndGlobalSection | ||
-EndGlobal | ||
diff --git a/eng/Build.props b/eng/Build.props | ||
index 9140eca..cb3ac52 100644 | ||
--- a/eng/Build.props | ||
+++ b/eng/Build.props | ||
@@ -3,8 +3,5 @@ | ||
<!-- Specify the solutions to build. Add all new solutions/projects here as necessary or the main build won't build them! --> | ||
<ItemGroup> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)..\template_feed\NetCoreTestTemplates.sln" /> | ||
- <ProjectToBuild Include="$(MSBuildThisFileDirectory)..\Templates\MSTestTemplates.sln" /> | ||
- <ProjectToBuild Include="$(MSBuildThisFileDirectory)..\WizardExtensions\WizardExtensions.sln" /> | ||
- <ProjectToBuild Include="$(MSBuildThisFileDirectory)..\test\Microsoft.TestTemplates.Acceptance.Tests.sln" /> | ||
</ItemGroup> | ||
</Project> | ||
diff --git a/test/Microsoft.TestTemplates.Acceptance.Tests.sln b/test/Microsoft.TestTemplates.Acceptance.Tests.sln | ||
deleted file mode 100644 | ||
index 7d8605a..0000000 | ||
--- a/test/Microsoft.TestTemplates.Acceptance.Tests.sln | ||
+++ /dev/null | ||
@@ -1,25 +0,0 @@ | ||
- | ||
-Microsoft Visual Studio Solution File, Format Version 12.00 | ||
-# Visual Studio Version 16 | ||
-VisualStudioVersion = 16.0.30404.172 | ||
-MinimumVisualStudioVersion = 10.0.40219.1 | ||
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.TestTemplates.Acceptance.Tests", "Microsoft.TestTemplates.Acceptance.Tests\Microsoft.TestTemplates.Acceptance.Tests.csproj", "{369E063C-1823-4213-BF99-504002639ED1}" | ||
-EndProject | ||
-Global | ||
- GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
- Debug|Any CPU = Debug|Any CPU | ||
- Release|Any CPU = Release|Any CPU | ||
- EndGlobalSection | ||
- GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
- {369E063C-1823-4213-BF99-504002639ED1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
- {369E063C-1823-4213-BF99-504002639ED1}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
- {369E063C-1823-4213-BF99-504002639ED1}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
- {369E063C-1823-4213-BF99-504002639ED1}.Release|Any CPU.Build.0 = Release|Any CPU | ||
- EndGlobalSection | ||
- GlobalSection(SolutionProperties) = preSolution | ||
- HideSolutionNode = FALSE | ||
- EndGlobalSection | ||
- GlobalSection(ExtensibilityGlobals) = postSolution | ||
- SolutionGuid = {CDFEF38D-33CE-4011-90A1-C63A1CD2EA31} | ||
- EndGlobalSection | ||
-EndGlobal | ||
-- | ||
2.18.0 | ||
|
67 changes: 67 additions & 0 deletions
67
eng/source-build-patches/0003-Fix-casing-in-project-files.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
From ef25c5a4142b1a52c7996e8a281afa879c5ae3d0 Mon Sep 17 00:00:00 2001 | ||
From: Chris Rummel <crummel@microsoft.com> | ||
Date: Thu, 22 Oct 2020 14:31:25 -0500 | ||
Subject: [PATCH 3/3] Fix casing in project files. | ||
|
||
--- | ||
.../Microsoft.DotNet.Test.ProjectTemplates.2.1.csproj | 2 +- | ||
.../Microsoft.DotNet.Test.ProjectTemplates.3.0.csproj | 2 +- | ||
.../Microsoft.DotNet.Test.ProjectTemplates.3.1.csproj | 2 +- | ||
.../Microsoft.DotNet.Test.ProjectTemplates.5.0.csproj | 2 +- | ||
4 files changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.2.1/Microsoft.DotNet.Test.ProjectTemplates.2.1.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.2.1/Microsoft.DotNet.Test.ProjectTemplates.2.1.csproj | ||
index 5767aee..6f7bba5 100644 | ||
--- a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.2.1/Microsoft.DotNet.Test.ProjectTemplates.2.1.csproj | ||
+++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.2.1/Microsoft.DotNet.Test.ProjectTemplates.2.1.csproj | ||
@@ -24,7 +24,7 @@ | ||
<PackageReference Remove="Microsoft.NETCore.App" /> | ||
<Compile Remove="$(GitInfoFile)" /> | ||
<Compile Remove="$(MSBuildThisFileDirectory)../../src/GitInfo.cs" /> | ||
- <Content Include="Content\**" > | ||
+ <Content Include="content\**" > | ||
<PackagePath>content</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.0/Microsoft.DotNet.Test.ProjectTemplates.3.0.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.0/Microsoft.DotNet.Test.ProjectTemplates.3.0.csproj | ||
index 5eab5b3..6951001 100644 | ||
--- a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.0/Microsoft.DotNet.Test.ProjectTemplates.3.0.csproj | ||
+++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.0/Microsoft.DotNet.Test.ProjectTemplates.3.0.csproj | ||
@@ -24,7 +24,7 @@ | ||
<PackageReference Remove="Microsoft.NETCore.App" /> | ||
<Compile Remove="$(GitInfoFile)" /> | ||
<Compile Remove="$(MSBuildThisFileDirectory)../../src/GitInfo.cs" /> | ||
- <Content Include="Content\**" > | ||
+ <Content Include="content\**" > | ||
<PackagePath>content</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.1/Microsoft.DotNet.Test.ProjectTemplates.3.1.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.1/Microsoft.DotNet.Test.ProjectTemplates.3.1.csproj | ||
index 7caa2bf..f5603e0 100644 | ||
--- a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.1/Microsoft.DotNet.Test.ProjectTemplates.3.1.csproj | ||
+++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.3.1/Microsoft.DotNet.Test.ProjectTemplates.3.1.csproj | ||
@@ -24,7 +24,7 @@ | ||
<PackageReference Remove="Microsoft.NETCore.App" /> | ||
<Compile Remove="$(GitInfoFile)" /> | ||
<Compile Remove="$(MSBuildThisFileDirectory)../../src/GitInfo.cs" /> | ||
- <Content Include="Content\**" > | ||
+ <Content Include="content\**" > | ||
<PackagePath>content</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
diff --git a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.5.0/Microsoft.DotNet.Test.ProjectTemplates.5.0.csproj b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.5.0/Microsoft.DotNet.Test.ProjectTemplates.5.0.csproj | ||
index c39ab4c..0381c0f 100644 | ||
--- a/template_feed/Microsoft.DotNet.Test.ProjectTemplates.5.0/Microsoft.DotNet.Test.ProjectTemplates.5.0.csproj | ||
+++ b/template_feed/Microsoft.DotNet.Test.ProjectTemplates.5.0/Microsoft.DotNet.Test.ProjectTemplates.5.0.csproj | ||
@@ -24,7 +24,7 @@ | ||
<PackageReference Remove="Microsoft.NETCore.App" /> | ||
<Compile Remove="$(GitInfoFile)" /> | ||
<Compile Remove="$(MSBuildThisFileDirectory)../../src/GitInfo.cs" /> | ||
- <Content Include="Content\**"> | ||
+ <Content Include="content\**"> | ||
<PackagePath>content</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
-- | ||
2.18.0 | ||
|