Silverlight 4: Resolving Microsoft.Silverlight.CSharp.targets was not found?

前端 未结 6 1827
误落风尘
误落风尘 2020-12-14 06:02

I\'ve been upgrading some Silverlight 3 apps to Silverlight 4 in Visual Studio 2010. My Silverlight 3 apps open fine in Visual Studio, but SL4 apps don\'t, with the followin

相关标签:
6条回答
  • 2020-12-14 06:02

    Looks like this is the missing piece...

    Silverlight 4 Tools for Visual Studio 2010

    0 讨论(0)
  • 2020-12-14 06:12

    You may get this with Silverlight version 4 projects when trying to open in version 5 if version 4 bits are not on that machine. What has worked for me (after several hours of trying everything) is to edit the csproj file and change the silverlight target version

    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    

    From 4 to 5

    0 讨论(0)
  • 2020-12-14 06:22

    A previously working installation can break when you install a new version of TFS on the server (or whatever it was that messed with my MSBuild).

    My 'targets' files had disappeared from C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0 on Server 2012 and reinstalling the tools.

    I believe it may be possible to just copy the targets files from another machine but not 100% sure.

    0 讨论(0)
  • 2020-12-14 06:25

    Afer many tries, what worked for me was: 1. go to add or remove programms 2. remove all silverlight versions installed (4, 5 or even if version is not specified remove it too!) 3. install Silverlight 4 SDK 4. install Silverlight 5 for developers Finally opened the project in VS 2010 SP1

    0 讨论(0)
  • 2020-12-14 06:27

    The file that's missing ships in the Silverlight 4 SDK. You can either install just the Silverlight 4 SDK, or re-install the entire Silverlight 4 Tools for VS2010 package (which will re-install the developer runtime, SDK, a hotfix for VS2010, the Silverlight 4 Tools package, and WCF RIA Services).

    0 讨论(0)
  • 2020-12-14 06:29

    This worked well for me...also had to install Silverlight 4 Developer runtime

    0 讨论(0)
提交回复
热议问题