I was working offline from TFS for a while in my solution. I went back online (TFS) and when I tried to compile my solution I get this for a project I had added to this solution.
AssemblyInfo.cs could not be opened - Unspecified Error
I checked and that file is there so not sure why it can't utilize/read it.
This is an ASP.NET Web Application and the project it's complaining about here is just a regular C# class library project.
Goto your project properties, Application tab, click on the Assembly Information button.
AssemblyInfo.cs contains general information about the application you are building, some of these information includes the title of your application, copyright etc, for instance if the title of your application is "MyApplication" you should see something like this: [assembly: AssemblyTitle("MyApplication")]
To access this dialog box, select a project node in Solution Explorer, and then, on the Project menu, select Properties. On the Application page, select the Assembly Information button.
I have had this happened to me in the past. This can be more of a Visual Studio problem more than anything else.
What this means is that the AssemblyInfo.cs file is either missing from the Properties folder in the project or there is a permissions issue. If there is a permissions issue, update the ACL (File > Properties > Security), close and re-open the project. If missing altogether, you just need to recreate it taking the following steps:
Source: Visual Studio 2010 Project Error AssemblyInfo.cs could not be opened
This error is usually thrown when the file doesn't exist locally (not on the server). Probably it was deleted by some mistake. If the file exists on the server you could obtain it from there and if it was deleted you could manually recreate and add it to the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With