Application Can't Load. Visual C# 2015 RC Comp

2019-01-10 16:36发布

I am trying to install Visual Studito 2015 RC Community edition.

I downloaded the web installer and installed all components. After installation, I rebooted my machine as instructed, but it keeps giving me the same error when I try to make an application. Please see the screen below:

Screenshot showing the error "Project ... could not be opened because the Visual C# 2015 RC compiler could not be created.  Please re-install Visual Studio."

I have tried this answer and this answer from earlier versions of Visual Studio. It resets the settings but ultimately had the same error.

I have also tried removing C:\Users\Gogol\AppData\Local\Microsoft\VisualStudio folder, but again, no luck.

I also have devenv.exe added to the path. I can access devenv in command prompt.

13条回答
地球回转人心会变
2楼-- · 2019-01-10 16:39

For me deleting the entire project directory, re-cloning the project from Git and restarting Visual Studio (Community 2015) worked. On opening the re-cloned project in VS, it asks "The project "" is configured to use IIS Web Server which is not installed on this computer. Would you like to convert the project to use IIS Express?"

On opting Yes, VS sets the web server for the project to IIS Express and the project loads and builds fine.

This ends up changing the .csproj file to UseIISExpress and sets the IISUrl, which probably fixed the "Project could not be opened" issue.

查看更多
看我几分像从前
3楼-- · 2019-01-10 16:40

In my case it was because the .csproj was configured to use local IIS. I had made some changes to IIS and the website was no longer there. There was a warning in the output window. Editing the .csproj file to point to a new site, or re-creating the site will fix the issue.

查看更多
老娘就宠你
4楼-- · 2019-01-10 16:41

Run devenv.exe as administrator. It worked for me.

查看更多
仙女界的扛把子
5楼-- · 2019-01-10 16:41

I had the same issue. Nothing from here helps me.

I run the installation of Visual Studio again and update it. The installation shows me that VC++ libs and IIS Express were absent. This was solved my issue.

查看更多
对你真心纯属浪费
6楼-- · 2019-01-10 16:42

This method worked for me:

Delete contents of these 2 folders

C:\Users\%USERNAME%\AppData\Roaming\Microsoft\VisualStudio\
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

Then run the VS.NET as admin, otherwise it won't be able to renew the Roaming folder correctly.

查看更多
女痞
7楼-- · 2019-01-10 16:42

Like most developers having this issue with VS2015 I tried everything and each rabbit hole messed up my development environment worst then the prior. After three days and just at a point where I was going to have to turn my development box into IT for a reinstall of the OS I tried something found ON THIS MESSAGE THREAD and my jaw dropped when it worked. All I did was stop using the Web install and used their ISO download - a fresh install (after countless uninstalls) and a repair using the ISO version worked as I am accustomed to.

This suggests to me that the VS team is not being forthright to their handling of what appears to be a bad installation process and are remaining silent while we spin our wheels losing days of work - not good....

[UPDATE] It resolved the compiler could not be created error but I am now fighting an issue with the NuGet package manager not being installed. I'm uninstalling Update 2 to see if I can't get Update 1 to work...

查看更多
登录 后发表回答