Win Service project won't Build after switching to Any CPU config

后端 未结 2 464

I\'m trying to find a fix for my problem. After changing my .net 4.0 C# Win Service project to Any CPU/Release build configuration, I am getting this compile time error:

2条回答
  •  长发绾君心
    2021-01-05 04:45

    Fixed! I'll include the solution in case anyone else comes across this strange build behavior. I found a forum thread on MSDN that had the solution to the problem. In the project file I removed the value between the tags and left it blank. Now builds successfully without the previous error.

提交回复
热议问题