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.
在我的解决方案中,我在TFS离线工作了一段时间。我重新上线(TFS),当我尝试编译我的解决方案时,我得到了一个我已添加到此解决方案的项目。
AssemblyInfo.cs could not be opened - Unspecified Error
无法打开AssemblyInfo.cs - 未指定错误
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.
这是一个ASP.NET Web应用程序,它在这里抱怨的项目只是一个常规的C#类库项目。
2 个解决方案
#1
8
I have had this happened to me in the past. This can be more of a Visual Studio problem more than anything else.
过去我发生过这件事。这可能是更多的Visual Studio问题。
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:
这意味着AssemblyInfo.cs文件在项目的Properties文件夹中丢失,或者存在权限问题。如果存在权限问题,请更新ACL(“文件”>“属性”>“安全性”),关闭并重新打开项目。如果完全丢失,您只需要通过以下步骤重新创建它:
- Within Visual Studio 2010, select Tools > Create GUID
- Click Copy (or New GUID then Copy)
- Click Exit
- Expand the Properties folder in the Solution Explorer (Control+W+S to open)
- Delete the AssemblyInfo.cs file shown with the exclaimation point
- Double click on the Properties folder - this should open the Properties window
- On the Application Tab, click the Application Information... button
- Fill in the application information, paste the GUID you copied into the GUID field - when done click OK
在Visual Studio 2010中,选择“工具”>“创建GUID”
单击复制(或新GUID,然后复制)
展开解决方案资源管理器中的Properties文件夹(Control + W + S打开)
删除使用exclaimation点显示的AssemblyInfo.cs文件
双击Properties文件夹 - 这应该打开Properties窗口
在应用程序选项卡上,单击应用程序信息...按钮
填写应用程序信息,将复制的GUID粘贴到GUID字段中 - 完成后单击“确定”
Source: Visual Studio 2010 Project Error AssemblyInfo.cs could not be opened
来源:Visual Studio 2010项目错误无法打开AssemblyInfo.cs
#2
2
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.
当文件本地不存在(而不是在服务器上)时,通常会抛出此错误。可能它被某些错误删除了。如果服务器上存在该文件,您可以从那里获取该文件,如果它已被删除,您可以手动重新创建并将其添加到项目中。
#1
8
I have had this happened to me in the past. This can be more of a Visual Studio problem more than anything else.
过去我发生过这件事。这可能是更多的Visual Studio问题。
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:
这意味着AssemblyInfo.cs文件在项目的Properties文件夹中丢失,或者存在权限问题。如果存在权限问题,请更新ACL(“文件”>“属性”>“安全性”),关闭并重新打开项目。如果完全丢失,您只需要通过以下步骤重新创建它:
- Within Visual Studio 2010, select Tools > Create GUID
- Click Copy (or New GUID then Copy)
- Click Exit
- Expand the Properties folder in the Solution Explorer (Control+W+S to open)
- Delete the AssemblyInfo.cs file shown with the exclaimation point
- Double click on the Properties folder - this should open the Properties window
- On the Application Tab, click the Application Information... button
- Fill in the application information, paste the GUID you copied into the GUID field - when done click OK
在Visual Studio 2010中,选择“工具”>“创建GUID”
单击复制(或新GUID,然后复制)
展开解决方案资源管理器中的Properties文件夹(Control + W + S打开)
删除使用exclaimation点显示的AssemblyInfo.cs文件
双击Properties文件夹 - 这应该打开Properties窗口
在应用程序选项卡上,单击应用程序信息...按钮
填写应用程序信息,将复制的GUID粘贴到GUID字段中 - 完成后单击“确定”
Source: Visual Studio 2010 Project Error AssemblyInfo.cs could not be opened
来源:Visual Studio 2010项目错误无法打开AssemblyInfo.cs
#2
2
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.
当文件本地不存在(而不是在服务器上)时,通常会抛出此错误。可能它被某些错误删除了。如果服务器上存在该文件,您可以从那里获取该文件,如果它已被删除,您可以手动重新创建并将其添加到项目中。