-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Solution SDK into legacy solutions
- This starts small with very specific properties set. - A little bit improvisation in recognition of un-supported projects and eliminating them from the Build process.
- Loading branch information
Showing
6 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
-NoLogo | ||
-Restore | ||
-MaxCPUCount | ||
-BinaryLogger | ||
-NodeReuse:False | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<Project> | ||
|
||
<!-- Enable Solution-wide Package Restore through our SDK --> | ||
<Import Sdk="MSBuild.NET.Legacy.Sdk" Project="NuGet.Restore.targets"/> | ||
<!-- Integrate with the Solution SDK for Legacy Solution files --> | ||
<Import Sdk="MSBuild.Solution.Sdk" Project="Sdk.Legacy.targets"/> | ||
|
||
</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,11 @@ | ||
<Project> | ||
|
||
<PropertyGroup Label="Solution"> | ||
<ImportByWildcardAfterSolution>False</ImportByWildcardAfterSolution> | ||
<ImportByWildcardBeforeSolution>False</ImportByWildcardBeforeSolution> | ||
</PropertyGroup> | ||
|
||
<!-- Enable Solution-wide Central Package Management through our SDK --> | ||
<Import Sdk="NuGet.Build.Sdk" Project="Sdk.Extensions.props"/> | ||
|
||
</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,16 @@ | ||
<Project> | ||
|
||
<Target Name="RemoveUnSupportedProjectsFromRestore" | ||
BeforeTargets="Restore;_LoadRestoreGraphEntryPoints;_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreProjectPathItemsPerFramework"> | ||
<ItemGroup> | ||
<UnSupportedProjectReference Include="@(ProjectReference->WithMetadataValue('Extension', '.nuproj'))" /> | ||
<ProjectReference Remove="@(UnSupportedProjectReference)" /> | ||
</ItemGroup> | ||
<Message Importance="High" Condition="@(UnSupportedProjectReference->Count()) > 0" | ||
Text="Restore is not currently supported for NuGet packaging projects (i.e., MSBuild projects with file extension 'nuproj')."/> | ||
</Target> | ||
|
||
<!-- Enable Solution-wide Package Restore through our SDK --> | ||
<Import Sdk="NuGet.Build.Sdk" Project="Sdk.Restore.targets" /> | ||
|
||
</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