VS2012到VS2013的转换问题-在VS中打开项目时,扩展引用将自动删除 [英] VS2012 to VS2013 conversion issue - extension references are being automatically removed whenever opening the project in VS

查看:97
本文介绍了VS2012到VS2013的转换问题-在VS中打开项目时,扩展引用将自动删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我们已经将现有的VS2012 LightSwitch Silverlight项目更新为VS2013,并且一切正常,除了每当我们首先从源代码控制中删除项目,然后在VS2013中打开它时,VS便会自动删除扩展dll引用 (用于标准的世界性主题)来自DesktopClient.csproj文件

We have updated an existing VS2012 LightSwitch Silverlight project to VS2013, and all works fine except for that whenever we first get the project down clean from source control, and then open it in VS2013, VS automatically removes the extension dll references (for the standard Cosmopolitan theme) from the DesktopClient.csproj file

反过来,这意味着在运行项目时,它将引发错误,提示缺少Microsoft.LightSwitch.Cosmopolitan.Client.dll文件.

This in turn means that when running the project, it throws an error saying the Microsoft.LightSwitch.Cosmopolitan.Client.dll file is missing.

如果您撤消更改(即重新添加引用),则即使再次关闭和打开VS,该项目也将正确运行.重新获取代码时,这只是一个问题.

If you undo the changes (i.e. adding the references back in) then the project will run correctly even when closing and opening VS again. Its only a problem when getting down the code afresh.

它似乎与在VS中首次打开项目时正在创建的_Pvt_Extensions文件夹有关,更具体地说,与每个扩展子文件夹中的LsPkgLastWriteTime.txt有关

It appears related to the _Pvt_Extensions folder being created when the project is first opened in VS, and more specifically the LsPkgLastWriteTime.txt in each extension sub folder

任何人都触犯过这个问题,或者有任何想法如何解决这个问题?除了自动升级/转换向导之外,LS 2013升级还需要其他手动步骤吗?

Anyone struck this before or have any idea how to correct this? Other than the automatic upgrade/conversion wizard are there other manual steps that are required for LS 2013 upgrades?

以下是VS自动删除的引用:

Here are the references VS is automatically removing:

.. \ _ Pvt_Extensions \ Microsoft.LightSwitch.Cosmopolitan \ Client \ Reference \ Microsoft.LightSwitch.Cosmopolitan.Client.dll
.. \ _ Pvt_Extensions \ Microsoft.LightSwitch.Extensions \ Client \ Reference \ Microsoft.LightSwitch.Extensions.Client.dll
.. \ _ Pvt_Extensions \ Microsoft.LightSwitch.Extensions \ ClientGen \ DebugOnlyRef \ Microsoft.LightSwitch.Extensions.Design.Client.dll

..\_Pvt_Extensions\Microsoft.LightSwitch.Cosmopolitan\Client\Reference\Microsoft.LightSwitch.Cosmopolitan.Client.dll
..\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\Client\Reference\Microsoft.LightSwitch.Extensions.Client.dll
..\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\ClientGen\DebugOnlyRef\Microsoft.LightSwitch.Extensions.Design.Client.dll

谢谢乔治.

推荐答案

乔治,您好

根据上面的错误消息,建议验证以下内容:

According to the error message above, it's recommended to verify the following:

•In server project do you see this reference?

<Reference Include="Microsoft.LightSwitch.Extensions.Server">

<HintPath>..\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\Server\Reference\Microsoft.LightSwitch.Extensions.Server.dll</HintPath>

</Reference>
•In SL client project do you see these references?

<Reference Include="Microsoft.LightSwitch.Cosmopolitan.Client">

<HintPath>..\_Pvt_Extensions\Microsoft.LightSwitch.Cosmopolitan\Client\Reference\Microsoft.LightSwitch.Cosmopolitan.Client.dll</HintPath>

</Reference>

<Reference Include="Microsoft.LightSwitch.Extensions.Client">

<HintPath>..\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\Client\Reference\Microsoft.LightSwitch.Extensions.Client.dll</HintPath>

</Reference>

<Reference Include="Microsoft.LightSwitch.Extensions.Design.Client">

<HintPath>..\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\ClientGen\DebugOnlyRef\Microsoft.LightSwitch.Extensions.Design.Client.dll</HintPath>

<ExtensionReferenceType>DebugOnly</ExtensionReferenceType>

</Reference>

这类似于

This is the similar discussion.

如果所有问题仍然存在,则可以尝试寻找一些更高级的替代方法.

if the issue still persists after all of them, you might try looking into a few more advanced alternatives. 

祝你有美好的一天.

Angie


这篇关于VS2012到VS2013的转换问题-在VS中打开项目时,扩展引用将自动删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆