我试图弄清楚我在这里想念的东西,一定很明显,但我看不到。
我要实现的目标是拥有一个基于.net core 3的WinForms应用程序的可行解决方案/项目。在他们刚刚宣布时对其进行研究可能为时过早,但是如果可以的话,为什么不这样做。这是我到目前为止已完成的步骤:
我收到错误消息:项目文件不完整。预期的进口量缺失。
这是CLI的输出:
Package Manager Console Host Version 4.9.2.5706
Type 'get-help NuGet' to see all available NuGet commands.
PM> dotnet --list-sdks
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.502 [C:\Program Files\dotnet\sdk]
2.2.105 [C:\Program Files\dotnet\sdk]
3.0.100-preview3-010431 [C:\Program Files\dotnet\sdk]
PM> dotnet new winforms
The template "Windows Forms Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on C:\DevProjects\winformscore3\winformscore3.csproj...
Persisting no-op dg to C:\DevProjects\winformscore3\obj\winformscore3.csproj.nuget.dgspec.json
Restore completed in 113.9 ms for C:\DevProjects\winformscore3\winformscore3.csproj.
Restore succeeded.
PM>
答案 0 :(得分:1)
https://dotnet.microsoft.com/download/dotnet-core/3.0
“要在Visual Studio中使用.NET Core 3.0,则需要Visual Studio 2019预览。”