将 PCL 转换为常规类库 [英] Convert a PCL to a regular Class Library

查看:20
本文介绍了将 PCL 转换为常规类库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个可移植类库,它的代码无需任何修改即可与常规类库完全兼容.

I currently have a Portable Class Library whose code is entirely compatible with a regular Class Library without any modification.

我想知道是否有现有的软件可以自动进行转换;我查看了 Visual Studio 工具,但找不到任何合适的工具.在写我自己的之前,我只是想确定一下!

I was wondering if there was an existing software to do the conversion automatically ; I looked into the Visual Studio tools but could not find any suitable. Before writing my own I just wanted to be sure!

推荐答案

差异将在您的 .proj 文件中.

The differences will be in your .proj file.

亲自尝试后,您必须所有以下操作;

Having tried it myself you will have to do all of the following;

  1. 删除 元素
  2. 删除 元素
  3. 将#2(如下)的位置更改为我在#1 中显示的内容

1.常规类库

<Import Project="$(MSBuildToolsPath)Microsoft.CSharp.targets" />

2.可移植类库

<Import Project="$(MSBuildExtensionsPath32)MicrosoftPortable$(TargetFrameworkVersion)Microsoft.Portable.CSharp.targets" />

这篇关于将 PCL 转换为常规类库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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