-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Clean target breaks on unknown TFM's #1556
Comments
@commonsensesoftware FYI seems the same problem you pointed |
@commonsensesoftware sorry, seems related |
Yes - it does seem to be closely related. I can't understand why MSBuild is resolving the .NET SDK folder: At least for me, I've been completely unable to build UWP projects correctly with 2.0.0 using any of the following:
I'm unable to determine if this is an issue with the .NET SDK or MSBuild. I also tried overriding the MSBuild extension path on the command-line by setting:
But this had no effect. MSBuild still reports the .NET SDK path. I could be wrong, but my understanding is that's how the default imports for *.props and *.targets are redirected from the default MSBuild paths to the .NET SDK paths. Even more surprising is that any global build property specified on the command-line should trump all other settings unless the property is reserved in which case you received an error from MSBuild. @onovotny have you been able to get anything working with VS 15.3.x and .NET SDK 2.0.0? Maybe I'm just doing something completely wrong or my installation is corrupt. |
Everything builds and works fine, just Clean fails. You can see this with the UWP Toolkit. |
@onovotny I can clean the project by adding reference to |
If you do an |
@onovotny Find the root cause, but I don’t know the right solution In SDK, there is a target
It is all good until, We could
however,
_CheckForInvalidConfigurationAndPlatform |
The real solution is that these TFM's need to be in the SDK.... /cc @terrajobst #889 |
I just noticed that on a clean repo that uses my SDK Extras, without the project.assets.json, running msbuild /t:clean fails:
To repro, clone
https://github.com/Microsoft/UWPCommunityToolkit
, checkout thedev
branch and then try to runMsbuild /t:clean
That’s it. This seems like a bug since in this state, the targets provided by my NuGet package won’t exist or be imported. Seems like this error check shouldn’t happen on Clean, but it should still nuke obj\TFM and bin\TFM directories?
Binlog:
log.zip
The text was updated successfully, but these errors were encountered: