VisualStudio9.0/Silverlight/Microsoft.Silverlight.Csharp.targets not exists!

本文介绍了解决Silverlight1.1项目在VS2008中因找不到必要文件而无法打开的问题。通过简单的MSBuild文件路径修改,即可让旧版项目在新版环境中正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The MSBuild files for Silverlight 1.1 were tucked inside of the MSBuild's Visual Studio folder. Now they are in their own folder.

If you try to open up a project created with Silverlight 1.1 in VS2008, you will get a message that the C:/program files/msbuild/microsoft/visualSutiod/v9.0/Silverlight/Microsoft.Silverlight.Csharp.targets (or VisualBasic.targets) file can't be found and you won't be allowed to open the project.

Click OK to let the solution load.

In the Solution Explorer you should seethe project listed but unavailable. Right click on it and choose the Edit option. The project's MSBuild file will open.

Scroll down until you find the Import Project= element that points to the targets file.

All you should have to do is replace

"VisualStudio9.0/Silverlight/"

with

"Silverlight/v2.0/"

Then you can reload the project after saving. 

生成开始于 10:54... 1>------ 已启动生成: 项目: ActDemo, 配置: Development_Editor x64 ------ 1>Using bundled DotNet SDK version: 8.0.300 1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" ActDemoEditor Win64 Development -Project="C:\Users\v_staoyang\Documents\GitHub\ActDemo\ActDemo.uproject" -WaitMutex -FromMsBuild -architecture=x64 1>Log file: C:\Users\v_staoyang\AppData\Local\UnrealBuildTool\Log.txt 1>Using 'git status' to determine working set for adaptive non-unity build (C:\Users\v_staoyang\Documents\GitHub\ActDemo). 1>Creating makefile for ActDemoEditor (no existing makefile) 1>Available x64 toolchains (1): 1> * C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.44.35207 1> (Family=14.44.35207, FamilyRank=1, Version=14.44.35207, Is64Bit=True, ReleaseChannel=Preview, Architecture=x64) 1>Visual Studio 2022 compiler version 14.44.35207 is not a preferred version. Please use the latest preferred version 14.38.33130 1>Total execution time: 1.69 seconds 1>Expecting to find a type to be declared in a module rules named 'VisualStudioTools' in 'UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. This type must derive from the 'ModuleRules' type defined by UnrealBuildTool. 1>C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: 命令“"C:\Program Files\Epic Games\UE_5.5\Engine\Build\BatchFiles\Build.bat" ActDemoEditor Win64 Development -Project="C:\Users\v_staoyang\Documents\GitHub\ActDemo\ActDemo.uproject" -WaitMutex -FromMsBuild -architecture=x64”已退出,代码为 8。 1>已完成生成项目“ActDemo.vcxproj”的操作 - 失败。 ========== 生成: 0 成功,1 失败,0 最新,0 已跳过 ========== ========== 生成 于 10:54 完成,耗时 02.311 秒 ==========
05-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值