Skip to content
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

Fixing build break due to new SDK #90

Merged
merged 5 commits into from
Jun 14, 2019

Conversation

arpitmathur
Copy link
Contributor

@arpitmathur arpitmathur commented Jun 14, 2019

This change modified netcore project files to contain property values to build properly such as <UseWPF>true</UseWPF> and <EnableDefaultItems>false</EnableDefaultItems>.

This change also moved TargetFramework/TargetFrameworkVersion properties into the individual netcore/net framework project files instead of Directory.Build.props. This should allow us to build each project individually.

This change also moved conditional Reference Include needed for multi-targeting from individual project files to the Directory.Build.props.

Fixes #89, Fixes #67

@@ -2,6 +2,7 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<TargetFrameworkVersion Condition="!$(MSBuildProjectName.Contains('netcore'))">v4.7.2</TargetFrameworkVersion>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don’t need the condition anymore

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same note goes for other projects. The condition was useful in a props file. In the csproj, there is no need for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the condition from all csproj files.

@arpitmathur arpitmathur merged commit 56aec4c into master Jun 14, 2019
@arpitmathur arpitmathur deleted the user/armathur/projectfilefixes branch June 14, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix sample projects build break due to new SDK NETCore projects should include TargetFramework property
3 participants