-
Notifications
You must be signed in to change notification settings - Fork 866
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
[Bug] .NET API bug UWP No longer supported #9494
Comments
I'm starting to think the reason is because it can't find Visual Studio because that code isn't included in netcoreapp targets: |
As described in linked-issue comment ( It might be resolved when next Roslyn version( |
I've tried to use Roslyn So this issue will be resolved when Roslyn |
Nice finding! Out of proc execution solves a whole class of problems with msbuild. |
@yufeih how was this addressed? With 2.76.0 I'm not able to build UWP projects and getting this warning right before all the errors:
|
Above message is raised by |
@filzrev Thanks I tried that both in the project and in the metadata properties, but no luck. I'm getting the same error for UWP, Xamarin.Android and Xamarin.iOS.
|
On my environment.
Above message path indicating I've checked how Roslyn 4.9.2 or later execute analysis out-of-process. (dotnet/roslyn#70469) |
BuildHost process kind selection logics are hardcoded at https://github.com/dotnet/roslyn/blob/0d1f9fea04892d9e65e9a780bb773a4d5ed18f8e/src/Workspaces/Core/MSBuild/MSBuild/BuildHostProcessManager.cs#L278-L336. So when using SDK style projects. As a workaround. Steps
Note: MSBuild path is depends on VS edition and installed paths. I don't have |
@filzrev Thanks for this, but unfortunately this isn't a good solution still because of the hardcoded paths to msbuild, and not everyone is using preview, or enterprise, professional or buildtools versions. |
Describe the bug
Since v2.60.0 we can no longer support UWP and other types of projects that requires the full MSBuild. It seems only .NET Core projects are now supported.
To Reproduce
Expected behavior
Metadata gets generated.
Context (please complete the following information):
OS: Windows
Docfx version: 2.74.1
.NET version: .NET Core / UWP
docfx.json
configOutput with v2.59.4:
Additional context
Digging into the compilation, it is now using the
'$(MSBuildRuntimeType)'=='Core'
which is not supporting these target frameworks.This is especially a problem when using MSBuildExtras to cross compile for multiple target frameworks, including UWP and Xamarin. MSBuildExtras will generate a build error for these target frameworks:
The text was updated successfully, but these errors were encountered: