自定义框架在Visual Studio 2010目标 [英] Custom framework targeting in Visual Studio 2010

查看:190
本文介绍了自定义框架在Visual Studio 2010目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Visual Studio编写针对一个自定义的框架,取代.NET(类似于在Windows Phone和Silverlight框架,这是的没有的一个子集或配置文件现有方案的能力,使开发人员框架),并具有完整的IntelliSense支持和全体。

I want to give developers using Visual Studio the ability to write programs against a custom framework that replaces .NET (similar to the Windows Phone and Silverlight frameworks, which are not subsets or profiles of an existing framework), and have full IntelliSense support and all.

Visual Studio 2010的支持多点定位,在那里你可以针对任何框架(如.NET,Silverlight中,机器人技术,XNA,的Windows Phone和单声道),如果你有合适的定位包安装。

Visual Studio 2010 supports multi-targeting, where you can target any framework (such as .NET, Silverlight, Robotics, XNA, Windows Phone and Mono) if you have the appropriate Targeting Packs installed.

我发现,框架一般都有自己放在部分引用程序集%PROGRAMFILES%\参考大会\微软\框架连同 FrameworkList。 XML 文件中的 RedistList 子文件夹。我试着只创建一个新的文件夹,把我的组件(如 MyFramework.dll )的存在以及包含FrameworkList.xml文件RedistList子文件夹。我清除了文件,但对于一个条目类似:

I found that frameworks generally have some reference assemblies that they put in %programfiles%\Reference Assemblies\Microsoft\Framework along with a FrameworkList.xml file in the RedistList subfolder. I've tried just creating a new folder, putting my assemblies (e.g. MyFramework.dll) in there along with the RedistList subfolder containing a FrameworkList.xml file. I cleared the file but for one entry for similar to:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FileList Redist="MyFramework_1_0">
  <File AssemblyName="MyFramework" Version="1.0.0.0"
    PublicKeyToken="be3ea0d08db41157" Culture="neutral"
    ProcessorArchitecture="MSIL" InGAC="false" />
</FileList>

创建一个新的项目(重新启动VS后),当

不过,Visual Studio中没有列出我的可用框架的名单框架。很显然,我失去了一些东西,但我一直没能找出什么。

But Visual Studio doesn't list my framework in the list of available frameworks when creating a new project (after restarting VS). Obviously, I am missing something, but I haven't been able to figure out what.

如何创建这样一个针对包,允许Visual Studio中看到自定义的框架,或者一些具有同样的效果?什么通常包括在一个定位包?可自定义生成添加步骤?

How to create such a Targeting Pack that allows Visual Studio to see the custom framework, or something that has the same effect? What is generally included in a Targeting Pack? Can custom build steps be added?

推荐答案

西蒙说,Visual Studio中也使用注册表来加载组件。

As simon says, Visual Studio also makes use of the registry to load components.

很多人都做了什么,你说​​,例如试着问 http://www.springframework.net

Many people have done what you say, for example try asking http://www.springframework.net.

有关的另一面,如果你只是想将自己的库添加到现有的框架看看这篇文章的 http://msdn.microsoft.com/en-us/library/ee722096.aspx

For another side, if you just want to add your own libraries to an existing Framework check out this article http://msdn.microsoft.com/en-us/library/ee722096.aspx

这篇关于自定义框架在Visual Studio 2010目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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