Could not find file 'obj\Debug\Program.exe.manifest'

痞子三分冷 提交于 2019-12-23 09:56:05

问题


Apologies if this has been answered before.

Something happened to my VS2010 SP1 VB.NET environment. I have been successfully working on, compiling and publishing project A via ClickOnce for a while, and then tried to publish project B, and received the error:

Could not find file 'obj\Debug\Program.exe.manifest' in file microsoft.common.targets. When I look at the microsoft.common.targets file, i receive > 101 warnings.

The Help tells me its error MSBuild Error MSB3113.

Now ALL projects behave in the same way, including the one that I was publishing.

Things I have tried:

Create new project in new location. same error during publish.

I moved both projects to a different machine, and both publish without problem.

I reinstalled VS2010 from scratch into a different location on the problem machine, and the error re-appears (problem machine is Vista, ok one is Windows7 prof).

Tried every variation of deployment, unsigned, signed etc. All projects are in VB.NET and it is unclear how to turn off the manifest inclusion via the VS2010 settings. I have tried doing this via changing the project information in the .vbproj file to

<PropertyGroup>
    <GenerateManifests>false</GenerateManifests>
</PropertyGroup>

without effect.

The project occasionally build successfully, but then fails to publish. The pattern to this I have not yet fully understood.

Any advice appreciated

Peter


回答1:


It might be worthwhile to delete the current manifest, and the generate a new one per the instructions found here:

http://msdn.microsoft.com/en-us/library/ms766454.aspx

Or, alternatively,

http://msdn.microsoft.com/en-us/library/ms235229%28v=vs.80%29.aspx



来源:https://stackoverflow.com/questions/9775449/could-not-find-file-obj-debug-program-exe-manifest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!