-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code to check for Microsoft.Build.CentralPackageVersions and use …
…unversioned packages. Closes #26
- Loading branch information
1 parent
573eb3f
commit 5897588
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/MSBuild.SDK.SystemWeb/Sdk/MSBuild.SDK.SystemWeb.DefaultPackages.targets
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,17 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Include versioned compilers unless ExcludeASPNetCompilers property is set or we are using Microsoft.Build.CentralPackageVersions --> | ||
<ItemGroup Condition="'$(ExcludeASPNetCompilers)'=='false' AND '$(UsingMicrosoftCentralPackageVersionsSdk)'!='true'"> | ||
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.8.0" PrivateAssets="All"/> | ||
<PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" Version="3.6.0" /> | ||
</ItemGroup> | ||
|
||
<!-- Include unversioned compilers unless ExcludeASPNetCompilers property is set if we are using Microsoft.Build.CentralPackageVersions --> | ||
<!-- See https://github.com/CZEMacLeod/MSBuild.SDK.SystemWeb/issues/26 and https://github.com/microsoft/MSBuildSdks/issues/320 --> | ||
<!-- Requires Microsoft.Build.CentralPackageVersions Version 2.1.1 or higher --> | ||
<ItemGroup Condition="'$(ExcludeASPNetCompilers)'=='false' AND '$(UsingMicrosoftCentralPackageVersionsSdk)'=='true'"> | ||
<PackageReference Include="Microsoft.Net.Compilers.Toolset" PrivateAssets="All"/> | ||
<PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" /> | ||
</ItemGroup> | ||
|
||
</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