-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename cross-targeting to multi-targeting #1471
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | ||
--> | ||
|
||
<!-- These targets are deprecated, forward to new targets --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this intended as a temporary measure so we can update the SDK gradually? Since we haven't shipped an official release with these targets I hope it'd be ok to just rename them atomically. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes |
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Import design time targets for Roslyn Project System. These are only available if Visual Studio is installed. --> | ||
<!-- Import design time targets before the common crosstargeting targets, which import targets from Nuget. --> | ||
<PropertyGroup> | ||
<CSharpDesignTimeTargetsPath Condition="'$(CSharpDesignTimeTargetsPath)'==''">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets</CSharpDesignTimeTargetsPath> | ||
</PropertyGroup> | ||
<Import Project="$(CSharpDesignTimeTargetsPath)" Condition="'$(CSharpDesignTimeTargetsPath)' != '' and Exists('$(CSharpDesignTimeTargetsPath)')" /> | ||
|
||
<Import Project="Microsoft.Common.CrossTargeting.targets" /> | ||
|
||
<Import Project="Microsoft.CSharp.MultiTargeting.targets" /> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- | ||
*********************************************************************************************** | ||
Microsoft.CSharp.MultiTargeting.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) Microsoft Corporation. All rights reserved. | ||
*********************************************************************************************** | ||
--> | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Import design time targets for Roslyn Project System. These are only available if Visual Studio is installed. --> | ||
<!-- Import design time targets before the common multitargeting targets, which import targets from Nuget. --> | ||
<PropertyGroup> | ||
<CSharpDesignTimeTargetsPath Condition="'$(CSharpDesignTimeTargetsPath)'==''">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets</CSharpDesignTimeTargetsPath> | ||
</PropertyGroup> | ||
<Import Project="$(CSharpDesignTimeTargetsPath)" Condition="'$(CSharpDesignTimeTargetsPath)' != '' and Exists('$(CSharpDesignTimeTargetsPath)')" /> | ||
|
||
<Import Project="Microsoft.Common.MultiTargeting.targets" /> | ||
|
||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,13 @@ Copyright (C) Microsoft Corporation. All rights reserved. | |
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- | ||
We are doing a cross-targeting build if there is no list of target frameworks specified | ||
We are doing a multi-targeting build if there is no list of target frameworks specified | ||
nor is there a current target framework being built individually. In that case, this import is | ||
redirected to Microsoft.CSharp.CrossTargeting.targets. | ||
redirected to Microsoft.CSharp.MultiTargeting.targets. | ||
--> | ||
<PropertyGroup Condition="'$(TargetFrameworks)' != '' and '$(TargetFramework)' == ''"> | ||
<IsMultiTargetingBuild>true</IsMultiTargetingBuild> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We may need to set both as compat shim as discussed in email, |
||
<!-- back-compat for deprecated IsCrossTargetingBuild property --> | ||
<IsCrossTargetingBuild>true</IsCrossTargetingBuild> | ||
</PropertyGroup> | ||
|
||
|
@@ -49,9 +51,9 @@ Copyright (C) Microsoft Corporation. All rights reserved. | |
<CscToolPath Condition="'$(CscToolPath)' == '' and '$(BuildingInsideVisualStudio)' != 'true'">$(MsBuildFrameworkToolsPath)</CscToolPath> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="'$(IsCrossTargetingBuild)' == 'true'"> | ||
<When Condition="'$(IsMultiTargetingBuild)' == 'true'"> | ||
<PropertyGroup> | ||
<CSharpTargetsPath>$(MSBuildToolsPath)\Microsoft.CSharp.CrossTargeting.targets</CSharpTargetsPath> | ||
<CSharpTargetsPath>$(MSBuildToolsPath)\Microsoft.CSharp.MultiTargeting.targets</CSharpTargetsPath> | ||
</PropertyGroup> | ||
</When> | ||
<Otherwise> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes needs to go in the amd64 folder as well (further down in the file). Use the same file source, just needs to be dropped to amd64.