当我单击解决方案的属性时,Visual Studio会写信给我:
An error occurred trying to load the page.
Property accessor 'TargetDescriptions' on object 'Microsoft.VisualStudio.ProjectFlavoring.Automation.Project.CommonProjectExtender' threw the following exception:'Value cannot be null.
Parameter name: targets'
我不明白这是什么意思。几天前它奏效了,我没有修改任何可能导致此错误的内容。
我只安装了nuget软件包管理器和Codemaid,但很久以前才使用它们。
空参考错误屏幕截图:
什么会导致Visual Studio 2015 Update 2中的此类问题?我应该降级吗?
在升级到Update 2之后,在Visual Studio中还有很多其他问题,我也发现了同样的问题。首先,我认为无法降级。我尝试安装一个完整的Update 1软件包,但是对于某些部分(例如SDK和Universal Apps工具),它只会与Update 2一起安装。这是一件不好的事。
但是无意中,我通过(重新)安装NuGet(https://docs.nuget.org/consume/installing-nuget)或https://visualstudiogallery.msdn.microsoft.com/5d345edc-2e2d-4a9c-b73b- d53956dc458d,然后单击工具,NuGet程序包管理器,程序包管理器控制台。在此控制台中(其表示PM>)键入:Install-Package Microsoft.NETCore.UniversalWindowsPlatform在我安装了此软件包(在References中,Micrsoft.NetCore.UniversalWindowsPlatform中显示)之后,上述错误消失了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句