NETSDK1100 blocks building on Linux
See original GitHub issueI have a test project which multi-targets between net472;netcoreapp2.1;netcoreapp3.0.
Only when targeting net472 or netcoreapp3.0 does it reference or use any WPF/WinForms types. Nevertheless, I have to set the SDK attribute to Microsoft.NET.Sdk.WindowsDesktop
for this to work with netcoreapp3.0 at all, AFAIK.
This blocks the test project from building the netcoreapp2.1
target on linux, which blocks me testing my library on Linux.
How should I proceed?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:33 (16 by maintainers)
Top Results From Across the Web
NETSDK1100: Set the `EnableWindowsTargeting` property ...
NETSDK1100 indicates that you're building a project that targets Windows on Linux or macOS. The full error message is similar to the ...
Read more >c# - Error NETSDK1100: Windows is required to build ...
When I try to do it, a message is displayed: error NETSDK1100: Windows is required to build Windows desktop applications. Unable to create ......
Read more >'Linux' 카테고리의 글 목록 - Hafen - 티스토리
Linux 11. Without oh-my-zsh 1: bindkey. zsh 환경에는 oh-my-zsh라는 훌륭한 ... NETSDK1100 blocks building on Linux · Issue #3592 · dotnet/sdk I have...
Read more >Net | PDF | Xml | Microsoft Visual Studio
Install on Windows Install on macOS. Install on Linux Overview Ubuntu ... How to: Write Messages to and Read Messages from a Dataflow...
Read more >Building Windows Desktop (WPF) on Linux : r/dotnet
All build agents are linux docker containers running… ... error NETSDK1100: Windows is required to build Windows desktop applications.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into this myself with the 3.1 SDK. My workaround was to add this to my csproj file. This is a workaround, of course, so your mileage may vary.
Why must this additional support be built into the SDK at all? Why not have it be a nuget package that can be referenced by UI projects, that includes the SDK tools necessary to build such projects?