惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - 血狼

切换ThinkPad Fn键 window.event.keycode值大全 通用分页存储过程 Oracle中将密码有效期由默认的180天修改成“无限制” C#中动态编译某C#文件 C#程序中执行script .Net Reactor 加密的简单例子 程序中执行cmd.exe 使用c#捕获Windows的关机事件 北京嘉纳博科技有限公司 Windows Service 初始化代码中追加断点问题 C#定时执行某个程序 .Net中关于多个FrameWork的问题 Chilkat 收、送信 合并文件 设置和获取注册表数据 DotNet多个程序集合并工具 PostGres 全文检索 PostGres 中包含触发器的方法
MSBuild的相关操作
血狼 · 2008-09-12 · via 博客园 - 血狼

1@SET MSBULD_EXE="%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe"
2CALL %MSBULD_EXE% Preprocessor.proj
3

 1<?xml version="1.0" encoding="UTF-8"?>
 2<Project DefaultTargets="Preprocess" 
 3    xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 4    <PropertyGroup>
 5        <!-- Debug,Release -->
 6        <VersionConfiguration>Debug</VersionConfiguration>
 7        
 8        <VersionName>SERVER</VersionName>
 9        <VersionCustomerName>TEST</VersionCustomerName>        
10    </PropertyGroup>
11    
12    <PropertyGroup>
13        <ProjectRoot>$(MSBuildProjectDirectory)\..\</ProjectRoot>
14        <ProjectSetupRoot>$(ProjectRoot)\setup</ProjectSetupRoot> 
15        <ProjectSourceRoot>$(ProjectRoot)\source</ProjectSourceRoot> 
16        <XmlPreprocessRoot>$(ProjectSetupRoot)\xmlpreprocess</XmlPreprocessRoot>
17        
18        <NewsExpressProejctDirectory>$(ProjectSourceRoot)\Main\NewsExpress\</NewsExpressProejctDirectory>
19        
20    </PropertyGroup>
21    
22    <Target Name="Preprocess">
23        <Message Text="すべての環境を設定します…" />
24        <CallTarget Targets="Main_NewsExpress_Preprocess"/>
25        <Message Text="すべての環境を設定しました。" />
26    </Target>
27    
28    <Import Project="$(NewsExpressProejctDirectory)\Preprocessor.proj"/>
29    </Project>
30

 1<?xml version="1.0" encoding="UTF-8"?>
 2<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 3
 4    <ItemGroup>
 5        <CharacterTableDestinationFile Include="$(NewsExpressProejctDirectory)\CharacterTable.xml"/>
 6    </ItemGroup>
 7    
 8    <Choose>
 9        <When Condition="'$(VersionCustomerName)'=='TEST' ">
10            <ItemGroup>
11                <CharacterTableSourceFile Include="$(NewsExpressProejctDirectory)\CharacterTable_S.xml"/>
12            </ItemGroup>
13        </When>
14        <When Condition="'$(VersionCustomerName)'=='OTHER' ">
15            <ItemGroup>
16                <CharacterTableSourceFile Include="$(NewsExpressProejctDirectory)\CharacterTable_I.xml"/>
17            </ItemGroup>
18        </When>
19        
20    </Choose>
21
22    <Target Name="Main_NewsExpress_Preprocess">
23        <Message Text="Main_NewsExpressの環境を設定します…" />
24        <Copy
25            SourceFiles="@(CharacterTableSourceFile)"
26            DestinationFiles="@(CharacterTableDestinationFile)"
27        />
28        <Message Text="Main_NewsExpressの環境を設定しました。" />
29    </Target>
30</Project>
31