我正在使用在VS 2012(Framework 4.5
)窗體窗體中創建的Windows應用程序(C#
)。這些要求要求它用於舊版本的Windows,因此我將目標框架設置爲.NET Framework 4
,將平臺目標設置爲x86
。一旦它的完成,我嘗試編譯我收到以下錯誤:自定義工具錯誤:無法生成文件
Custom tool error: Failed to generate file: The service reference is not valid for the current .NET Framework version or project type. You can change the service reference configuration in the .svcmap
我試着取消選中在服務引用盒子「Reuse types in referenced assemblies
」翻轉到框架4,但沒有運氣了。
沒有,它的工作,謝謝! – Danno