Skip to content

Commit

Permalink
Import Common(s) from Legacy SDK
Browse files Browse the repository at this point in the history
- Add 'Microsoft.CodeSharing.Common.props' to import common properties from Legacy SDK.
- Move 'MSBuild.CodeSharing.Sdk.{props/targets}' to Build folder as other SDKs.
- Rename existing 'MSBuild.CodeSharing' files to 'Microsoft.CodeSharing'.
  Since, those files come from them.
  • Loading branch information
Nirmal4G committed Nov 30, 2021
1 parent 668df3c commit 59584b8
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project>

<!-- Apply Project System options based on Project Type -->
<Choose>
<When Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<PropertyGroup>
Expand Down Expand Up @@ -38,18 +39,17 @@
</Choose>

<PropertyGroup Label="Globals">
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">17.0</VisualStudioVersion>
</PropertyGroup>

<PropertyGroup>
<IsSharingProject>true</IsSharingProject>
<DefineCommonItemSchemas>true</DefineCommonItemSchemas>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">17.0</VisualStudioVersion>
</PropertyGroup>

<PropertyGroup Label="Legacy">
<IsSharedProject>$(IsSharingProject)</IsSharedProject>
<IsCodeSharingProject>$(IsSharingProject)</IsCodeSharingProject>
</PropertyGroup>

<Import Project="..\Core\Microsoft.CodeSharing.$(ParentProjectType).props"/>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == ''">8.0</TargetPlatformVersion>
</PropertyGroup>

<Import Project="MSBuild.CodeSharing.$(ParentProjectType).targets"/>
<Import Project="..\Core\Microsoft.CodeSharing.$(ParentProjectType).targets"/>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>

<Import Sdk="MSBuild.NET.Legacy.Sdk" Project="Sdk.Core.props"/>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<_XamlLanguageTargets>$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.$(LanguageSourceName).targets</_XamlLanguageTargets>
</PropertyGroup>

<Import Project="$(_XamlLanguageTargets)" Condition="Exists('$(_XamlLanguageTargets)')"/>
<Import Sdk="MSBuild.NET.Legacy.Sdk" Project="Sdk.Core.targets" Condition="!Exists('$(_XamlLanguageTargets)')"/>
<Import Project="$(_XamlLanguageTargets)" Condition="Exists('$(_XamlLanguageTargets)')"/>

<ItemGroup>
<PropertyPageSchema Include="$(MSBuildToolsPath)\$(LangName)\SubProject.xaml"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>

<Import Project="MSBuild.CodeSharing.Common.props"/>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>

<Import Project="MSBuild.CodeSharing.Common.props"/>

</Project>

0 comments on commit 59584b8

Please sign in to comment.