Skip to content

Commit

Permalink
Fixed build targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp2masa committed May 8, 2018
1 parent 3be8b12 commit 9409bd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 33 deletions.
4 changes: 1 addition & 3 deletions build/Targets/Workarounds.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project>

<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.props" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'" />

<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'">
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.tmp_proj' OR $(MSBuildProjectName.EndsWith('wpftmp'))">
<LanguageTargets>$(MSBuildToolsPath)\Microsoft.CSharp.targets</LanguageTargets>
</PropertyGroup>

Expand Down
2 changes: 0 additions & 2 deletions build/Targets/Workarounds.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
</PropertyGroup>
</Target>

<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.targets" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'" />

</Project>
22 changes: 4 additions & 18 deletions source/VSPropertyPages.Sample/VSPropertyPages.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.props" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'" />
<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.props" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj' OR $(MSBuildProjectName.EndsWith('wpftmp'))" />

<PropertyGroup>
<TargetFramework>net471</TargetFramework>
Expand All @@ -29,23 +29,9 @@
</EmbeddedResource>
</ItemGroup>

<!--
WPF Workarounds
-->

<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'">
<LanguageTargets>$(MSBuildToolsPath)\Microsoft.CSharp.targets</LanguageTargets>
</PropertyGroup>

<ItemGroup>
<Page Include="PropertyPages\**\*.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Compile Update="PropertyPages\**\*.xaml.cs">
<SubType>Code</SubType>
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<Page Include="PropertyPages\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
<Compile Update="PropertyPages\**\*.xaml.cs" DependentUpon="%(Filename)" />
</ItemGroup>

<Target Name="WorkaroundForXAMLIntellisenseBuildIssue" AfterTargets="_CheckCompileDesignTimePrerequisite">
Expand Down Expand Up @@ -93,6 +79,6 @@
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets') AND '$(MSBuildProjectExtension)' != '.tmp_proj'" />

<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.targets" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'" />
<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.targets" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj' OR $(MSBuildProjectName.EndsWith('wpftmp'))" />

</Project>
14 changes: 4 additions & 10 deletions source/XSharp.ProjectSystem/XSharp.ProjectSystem.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.props" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'" />
<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.props" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj' OR $(MSBuildProjectName.EndsWith('wpftmp'))" />

<PropertyGroup>
<TargetFramework>net471</TargetFramework>
Expand Down Expand Up @@ -41,14 +41,8 @@
</ItemGroup>

<ItemGroup>
<Page Include="ProjectSystem\**\*.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Compile Update="ProjectSystem\**\*.xaml.cs">
<SubType>Code</SubType>
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<Page Include="ProjectSystem\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
<Compile Update="ProjectSystem\**\*.xaml.cs" DependentUpon="%(Filename)" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -90,6 +84,6 @@
</Target>

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.targets" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj'" />
<Import Project="$(BaseIntermediateOutputPath)*.nuget.g.targets" Condition="'$(MSBuildProjectExtension)' == '.tmp_proj' OR $(MSBuildProjectName.EndsWith('wpftmp'))" />

</Project>

0 comments on commit 9409bd0

Please sign in to comment.