-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
550345e
commit c13f355
Showing
7 changed files
with
80 additions
and
8 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
4 changes: 4 additions & 0 deletions
4
Patch/v170/Current/Imports/Microsoft.Common.Props/ImportBefore.props
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,4 @@ | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildThisFileDirectory)\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftCommonProps)' == 'true' and exists('$(MSBuildThisFileDirectory)\ImportBefore')"/> | ||
</Project> |
18 changes: 18 additions & 0 deletions
18
...70/Current/Imports/Microsoft.Common.Props/ImportBefore/Microsoft.NuGet.ImportBefore.props
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,18 @@ | ||
<!-- | ||
*********************************************************************************************** | ||
Microsoft.NuGet.ImportBefore.props | ||
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | ||
created a backup copy. Incorrect changes to this file will make it | ||
impossible to load or build your projects from the command-line or the IDE. | ||
Copyright (c) .NET Foundation. All rights reserved. | ||
*********************************************************************************************** | ||
--> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<!--<NuGetProps Condition="'$(NuGetProps)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\$(VisualStudioVersion)\Microsoft.NuGet.props</NuGetProps>--> | ||
<NuGetProps Condition="'$(NuGetProps)'==''">$(VCTargetsPath)\Microsoft\NuGet\Microsoft.NuGet.props</NuGetProps> | ||
</PropertyGroup> | ||
<Import Condition="Exists('$(NuGetProps)') and '$(SkipImportNuGetProps)' != 'true'" Project="$(NuGetProps)" /> | ||
</Project> |
4 changes: 4 additions & 0 deletions
4
Patch/v170/Current/Microsoft.Common.Targets/ImportAfter.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,4 @@ | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildThisFileDirectory)\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildThisFileDirectory)\ImportAfter')"/> | ||
</Project> |
25 changes: 25 additions & 0 deletions
25
Patch/v170/Current/Microsoft.Common.Targets/ImportAfter/Microsoft.NuGet.ImportAfter.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,25 @@ | ||
<!-- | ||
*********************************************************************************************** | ||
Microsoft.NuGet.ImportAfter.targets | ||
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | ||
created a backup copy. Incorrect changes to this file will make it | ||
impossible to load or build your projects from the command-line or the IDE. | ||
Copyright (c) .NET Foundation. All rights reserved. | ||
*********************************************************************************************** | ||
--> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<!--<NuGetTargets Condition="'$(NuGetTargets)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\$(VisualStudioVersion)\Microsoft.NuGet.targets</NuGetTargets>--> | ||
<NuGetTargets Condition="'$(NuGetTargets)'==''">$(VCTargetsPath)\Microsoft\NuGet\Microsoft.NuGet.targets</NuGetTargets> | ||
|
||
<!--为了避免修改 Microsoft.NuGet.targets,我们指定一下 NuGet必须的属性,让其正常工作。--> | ||
<BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == '' and '$(TargetPlatformIdentifier)' == 'Linux'">linux</BaseNuGetRuntimeIdentifier> | ||
<BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == '' and '$(TargetPlatformIdentifier)' == 'OSX'">osx</BaseNuGetRuntimeIdentifier> | ||
|
||
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == '' and '$(BaseNuGetRuntimeIdentifier)' == 'linux'">linux;linux-x86;linux-x64;linux-arm64</RuntimeIdentifiers> | ||
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == '' and '$(BaseNuGetRuntimeIdentifier)' == 'osx'">osx;osx-x86;osx-x64;osx-arm64</RuntimeIdentifiers> | ||
</PropertyGroup> | ||
<Import Condition="Exists('$(NuGetTargets)') and '$(SkipImportNuGetBuildTargets)' != 'true'" Project="$(NuGetTargets)" /> | ||
</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,12 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<!--特意给工程配置 ApplicationType与ApplicationTypeRevision显得非常基类,减少一些用户配置.--> | ||
<ApplicationType Condition="'$(ApplicationType)' == '' and '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">OSX</ApplicationType> | ||
<ApplicationType Condition="'$(ApplicationType)' == '' and '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">Linux</ApplicationType> | ||
<ApplicationTypeRevision Condition="'$(ApplicationTypeRevision)' == '' and '$(ApplicationType)' != ''">1.0</ApplicationTypeRevision> | ||
<TargetLinuxPlatform Condition="'$(TargetLinuxPlatform)' == '' and '$(ApplicationType)' != ''">Generic</TargetLinuxPlatform> | ||
|
||
<CustomBeforeMicrosoftCommonProps>$(VCTargetsPath)\Current\Imports\Microsoft.Common.Props\ImportBefore.props</CustomBeforeMicrosoftCommonProps> | ||
<CustomAfterMicrosoftCommonTargets>$(VCTargetsPath)\Current\Microsoft.Common.Targets\ImportAfter.targets</CustomAfterMicrosoftCommonTargets> | ||
</PropertyGroup> | ||
</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