Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 can't run c# files [closed]

I've recently downloaded vs 2013, and when I hit Start(with or without debugging) when working on console applications the Error is :

Error   1   Source file 'C:\Windows\TEMP\.NETFramework,Version=v4.5.AssemblyAttributes.cs' could not be found

+path of the project

What can I do? I tried to repair the .net framework on my computer but it's still the same.

like image 590
gilgemer Avatar asked Mar 19 '23 19:03

gilgemer


1 Answers

This link suggests that you have trouble writing to the temp directory.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/73e67f3a-c575-4c73-a71d-ed7a2aeabb50/csc-error-cs2001-source-file-cwindowstempnetframeworkversionv40assemblyattributescs?forum=msbuild

Grant permissions read/write/execute to the temp folder, or maybe try running visual studio as administrator to see if it is permissions related.

like image 144
Derek Avatar answered Mar 23 '23 01:03

Derek