-
Notifications
You must be signed in to change notification settings - Fork 44
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
VS 2017 15.6+ breaks UAP builds #43
Comments
Could this be the result of a different order because of the SDK usage? |
Will take a look. Also @kzu, any thoughts as you rearranged a few things to support SDK's :) |
Is this reproducible both in sdk usage as well as packgeref usage?
… --
--
/kzu from mobile
|
In package ref, it works fine. It only breaks when using it as SDK. |
See this repository: https://github.com/GeertvanHorrik/MultiTargetingProject Here is the csproj: Whenever I make the changes, it breaks. |
@GeertvanHorrik Still investigating, but it looks like something in the WPF target defaults is interfering: Setting Still not sure what's different in the ordering. Would love any thoughts @kzu |
For testing/creating a simple repro, I added a new test project in this repo in Would be great if we can get an isolated repro there. |
I suspect what's going on is in here: The WPF targets are including everything as a page by default. I think the proper fix is two-fold:
I'm still not sure why it worked as a |
@GeertvanHorrik did that help your issue? |
Sorry for my late reply, the "focused inbox" got me on this. Will look into it. |
Trying with 1.3.1, but that doesn't work yet. Trying the fix you proposed. |
See commit: GeertvanHorrik/MultiTargetingProject@2fa1240 Only setting |
Yeah, the issue is with the default Page glob. Not sure what the right balance is for this, getting a single WPF target vs multi-target where different project types share the XAML file extension. |
Are more people using the extras for multitargeting? I think so, but you now the stats better…
|
@GeertvanHorrik Can you make your template work with the package built using the recent commit on my PR? You can put your project folder into |
Just verified that it works with a few changes. Here is the full commit ensuring compatibility with the PR: |
I just wrote a post with the following example repository:
https://github.com/GeertvanHorrik/MultiTargetingProject/blob/master/src/Ghk.MultiTargeting/Ghk.MultiTargeting.csproj
Then I read about the new 15.6 method to include the references, so I made the following changes.
Changes
<Project Sdk="Microsoft.NET.Sdk">
with<Project Sdk="MSBuild.Sdk.Extras/1.2.2">
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
Result
The text was updated successfully, but these errors were encountered: