我正在尝试在新安装的Visual Studio2019社区中创建一个C# .NET框架控制台应用程序项目。
在解决方案资源管理器中,右键单击ConsoleApp1 Properites→后,将出现一个窗口,但它只包含以下错误,而不是项目设置:
An error occurred trying to load the project properties window. Close the window and try again.
Value cannot be null.
Parameter name: val
不幸的是,我对如何处理这个问题一无所知。我尝试重新创建解决方案,但此问题仍然存
在页面上:https://visualstudio.microsoft.com/vs/features/universal-windows-platform/微软描述了C++,C#,VB,JavaScript for Blank App (Windows Universal)。我已经安装了与之相关的所有重要组件。.NET框架4.5.2,所有的ASP.NET特性,web开发工具,Visual Studio SDK (用于扩展模板),我可以找到适用于C++,C#和VB的它,但没有JavaScript。我记得2017年也发生过类似的事情,我刚刚复制了2015年的模板。我不再使用2015,也不知道它
我一直认为.NET框架只适用于Windows,而.NET核心是跨平台(Win,Mac,Linux)。ASP.NET或ASP.NET核心是web框架,分别位于庞大的.NET或.NET核心领域。我认为经验法则是,如果某个东西没有“核心”后缀,它就是只在Windows上运行的。然而,今天我发现我可以在我的MacBook上使用Visual Studio for Mac创建.NET项目。我真的很困惑。这些项目是在.NET框架(运行时)上运行,还是在.NET核心上运行?我错过了什么?
在StackOverflow上,有很多关于将解决方案从Visual Studio2017升级到Visual Studio2019的答案。但是我如何降级回Visual Studio 2017呢?当我尝试在Visual Studio 2017中构建项目时,我收到以下错误:
Error MSB8020.
The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.
在尝试构建默认的TypeScript项目(Debug > Windows > Device)时,我会得到以下错误:
No Windows Phone 8 emulators installed. Please install Visual Studio 2013 with Windows Phone 8 tools selected to install the emulators
注意:我正在使用Visual 2015的发布候选版本,并刚刚安装了VisualStudioCommunity2015的试用版。
安装Visual 2013 Windows 8工具并不是正确的解决
我在使用Visual Studio2019预览版测试C# 9.0的新功能时遇到了这个问题。我正在测试init setter,但编译器显示错误,并显示以下消息:
错误:未定义或导入预定义类型'System.Runtime.CompilerServices.IsExternalInit‘CS0518。下面是我尝试过的代码片段:
public class Book
{
string ISBN { get; init; }
}
我目前正在使用VisualStudio2013Express for Windows桌面,但我无法真正找到DirectX模板,即文件-> New project -> Visual C++,但既没有DirectX模板,也没有Windows文件夹扇区。我在谷歌上搜索过这个,但似乎没有人发布过。模板在哪里?