Conditionally include assemblies depending on Platform setting with MSBuild
来源:互联网 发布:vb中tab是什么意思 编辑:程序博客网 时间:2024/06/06 04:37
We can conditinallly include assemblies depending on Platform setting by modifying project file.
To open your project file, you can right-click project node, and choose Unload Project, and then right-click project node again, and choose Edit MyProj.csproj. And you also can open it in project directory.
After opening it, You will see <Reference> and <ProjectReference> items, <Refenerece> item is to include the assembly which is registerd in GAC. <ProjectReference> item is to include the project reference to this project. So you can add condition property in these two items, so that you can include corresponding assembies according to Platform setting. For example:
<Reference Include="System.Xml" Condition=" '$(Platform)' == 'x86'" /> <ProjectReference Include="../ClassLibrary/ClassLibrary.csproj" Condition="'$(Platform)' == 'x64'"> <Project>{89798266-B6B9-4E3F-8368-562077F19205}</Project> <Name>ClassLibrary1</Name> </ProjectReference>
- Conditionally include assemblies depending on Platform setting with MSBuild
- Spring Dependencies and Depending on Spring
- Remote shell with telnet on windows platform
- Join array elements depending on the element's index
- Unexpected Exception caught setting 'x' on class xx:Error setting expression 'xx' with value ['x',]
- Binary translation is incompatible with long mode on this platform
- TensorFlow Machine Learning with Financial Data on Google Cloud Platform
- Setting up Mosquitto 1.4 with libwebsockets on CentOS 7 on Google Compute Engine
- mtk platform make menuconfig setting
- 设置ActionBar在不同平台上Button的样式(Setting ActionBar Button style based on platform )
- Setting Up A High-Availability Load Balancer With HAProxy/Keepalived On Debian Lenny
- Setting up SSL with a SelfSSL certificate on Windows Server 2003
- Not enough physical memory is available to power on this virtual machine with its configured setting
- Setting Up OpenERP (Odoo) 9 with Nginx on RHEL/CentOS and Debian/Ubuntu
- Setting up iTerm2 with oh-my-zsh and powerline on OSX
- Setting Gdb on Windows
- apache Setting on ubuntu
- basic setting on Pycharm
- JAVA内存处理--堆和栈
- iphone开发中的一点感悟
- Prototype是怎样扩展DOM的
- 枚举占用某DLL的进程
- GIF图像动画
- Conditionally include assemblies depending on Platform setting with MSBuild
- 日文输入法使用
- 在Python代码中调用WPS
- 日语输入法使用技巧!
- 存几个链接
- Groovy Samples (attribute validators,transient attribute value calculations,bind variable and attribute default values )
- 一个26岁的男人和43岁的女人
- 人生苦短?python!
- JAVA性能优化