Import Project and OutputPath (csproj)
原文网址:https://bytes.com/topic/c-sharp/answers/629042-import-project-outputpath-csproj
I am having a problem getting Import Project to work in my csproj
file.
I have a number of C# projects and I'd like to have easy control over
the folder that they are built to. In other words, I want all the .exe
files to be put in the same folder after the build. Additionally, I
want the guy down the hall to be able to easily choose a different
folder for the .exe files.
I have done the following:
csproj_exe.targets contains:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/
developer/msbuild/2003">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU' ">
<OutputPath>L:\exe_debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Release|AnyCPU' ">
<OutputPath>L:\exe\</OutputPath>
</PropertyGroup>
</Project>
Each project contains:
<Import Project="..\csproj_exe.targets" />
and I've removed the OutputPath item.
------------------------------
Here's the problem:
When I open the project and look at the properties, the correct value
is in the OutputPath.
When I compile, it gives me an error saying that I need to specify an
OutputPath.
If I put an OutputPath statement in with the value "testing", then it
puts the output in a folder called "testing", so it is clearing
ignoring the "Import Project" line.
How do I get this to work?
相关文章
- SIGPIPE and EPIPE
- 开机提示:DISK BOOT FAILURE,INSERT SYSTEM DISK AND PRESS ENTER无法开机的解决办法「建议收藏」
- 关于现代浏览器的 back-and-forward 缓存机制
- ORA-22899: cannot specify both scope and rowid constraint on ref column ORACLE 报错 故障修复 远程处理
- ORA-23496: can not change disabled status for “string” and “string” ORACLE 报错 故障修复 远程处理
- ORA-31665: mode can only be defaulted for IMPORT and SQL_FILE operations ORACLE 报错 故障修复 远程处理
- ORA-39320: Column names do not match between export and import databases. ORACLE 报错 故障修复 远程处理
- ORA-39360: Table string was skipped due to transportable import and TSLTZ issues resulting from time zone mismatch. ORACLE 报错 故障修复 远程处理
- MySQL Error number: 3901; Symbol: ER_PARTIAL_REVOKE_AND_DB_GRANT_BOTH_EXISTS; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-013805; Symbol: ER_WARN_REPLICA_GTID_ONLY_AND_GTID_MODE_NOT_ON; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL中的OR与AND操作符比较(mysqlor和and)
- 深入浅出:MySQL中AND和OR运算符使用方法(mysql中and和or)
- Exploring the Power and Versatility of SAR on the Linux Platform(sarlinux)
- Mastering MongoDB: Essential Tips and Tricks for Efficient Database Operations(mongodb数据库操作)
- 10 Simple Steps to Modify MySQL and Improve Database Performance(modifymysql)
- Oracle数据库中的AND查询(oracle and查询)
- MySQL中AND的使用方法及含义解析(mysql中and的含义)