无法使用Visual Studio打开.sIn文件(Windowsbase,PresentationCore,PresentationFramework) [英] Can't open .sIn File with Visual Studio (Windowsbase, PresentationCore, PresentationFramework)

查看:309
本文介绍了无法使用Visual Studio打开.sIn文件(Windowsbase,PresentationCore,PresentationFramework)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我在Microsoft Blend 2013中创建了一个文件,并尝试使用Visual Studio 2013和2015 Preview打开它。



这是一个简单的WPF表单,带有图像,文本框,按钮和一个故事板。

这里的xaml



当我尝试用Visual Studio读取它时出现以下错误:



---------------------------

Microsoft Visual Studio

---------------------------

尝试重新定位项目已被取消。目标框架中缺少必需的程序集WindowsBase,PresentationCore和PresentationFramework。

--------------------- ------

OK

---------------------------




如果有人知道我的电脑上有这么多的话,我会非常感激。



谢谢

Hi
I created a file in Microsoft Blend 2013 and tried to open it with Visual Studio 2013 and 2015 Preview.

It's a simple WPF Form with a Image, a Textbox, a Button and one Storyboard.
(Here the xaml)

When I try to read it with Visual Studio I get the following Error:

---------------------------
Microsoft Visual Studio
---------------------------
Attempted re-targeting of the project has been canceled. Required assemblies 'WindowsBase', 'PresentationCore', and 'PresentationFramework' are missing from the target framework.
---------------------------
OK
---------------------------


I would be very thankful if someone has a clue thy this heppens on my Computer.

Thanks

推荐答案

项目的重新定位已被取消。为了能够将测试项目定位到.NET Framework 3.5,您必须使用以下Microsoft网站中记录的步骤: 链接



此链接将您带到一个页面,该页面为您提供有关如何重新定位.NET Framework 3.5的说明。



如何重新定位Visual Studio测试用于.NET 4平台更新的项目

右键单击项目并选择卸载项目

右键单击卸载的项目并选择编辑(项目名称)

将目标框架版本更改为v4.0.1



重新加载项目,你很高兴。
Attempted re-targeting of the project has been canceled. To be able to target your test project to .NET Framework 3.5, you must use the steps documented at the following Microsoft Web site: Link

This link takes you to a page that gives you instructions on how to re target for .NET Framework 3.5.

How To Re target Visual Studio Test Projects for .NET 4 Platform Update
Right click on the project and select Unload Project
Right click on the unloaded project and select Edit (name of project)
Change the target framework version to v4.0.1

Reload the project and you are good to go.


这篇关于无法使用Visual Studio打开.sIn文件(Windowsbase,PresentationCore,PresentationFramework)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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