AssemblyInfo.cs Failed to Open - Unspecified Error

I worked offline from TFS for a while in my solution. I returned to online (TFS), and when I tried to compile my solution, I got this for the project that I added to this solution.

Failed to open AssemblyInfo.cs - Undefined error

I checked and this file is so not sure why it cannot use / read it.

This is an ASP.NET web application, and the project he complains about is a regular C # class library project.

+6
source share
2 answers

It happened to me in the past. This may be more of a problem with Visual Studio than anything else.

This means that the AssemblyInfo.cs file is either missing from the Properties folder in the project, or there is a problem with access rights. If there is a problem with access rights, update the ACL (File> Properties> Security), close and reopen the project. If you are absent at all, you just need to recreate it by following these steps:

  • In Visual Studio 2010, select Tools > Create GUID
  • Click Copy (or New GUID , then Copy )
  • Click Exit
  • Expand the Properties folder in Solution Explorer ( Control + W + S to open)
  • Delete AssemblyInfo.cs file shown with exclamation point
  • Double click on the "Properties" folder - the "Properties" window will open
  • On the Application tab, click the Application Information button
  • Fill in the application information, paste the GUID that you copied into the GUID field - when done, click OK

Source : Visual Studio 2010 Project Error AssemblyInfo.cs failed to open

+8
source

This error usually occurs when the file does not exist locally (and not on the server). It was probably deleted by some error. If the file exists on the server, you can get it from there, and if it was deleted, you can manually recreate and add it to the project.

+2
source

Source: https://habr.com/ru/post/902518/


All Articles