개정판 6fb38778
issue #00000 app.release.config 추가
Change-Id: I1d6161c7f39a30ee7df2fda5399eb9c67ffc06e2
ID2.Manager/ID2.Manager/ID2.Manager.csproj | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<!--nuget add--> |
|
3 | 2 |
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
4 | 3 |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
5 | 4 |
<PropertyGroup> |
... | ... | |
36 | 35 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> |
37 | 36 |
<DebugSymbols>true</DebugSymbols> |
38 | 37 |
<OutputPath>bin\x64\Debug\</OutputPath> |
39 |
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
38 |
<DefineConstants>TRACE;DEBUG;ID2Manager_X64</DefineConstants>
|
|
40 | 39 |
<DebugType>full</DebugType> |
41 | 40 |
<PlatformTarget>x64</PlatformTarget> |
42 | 41 |
<LangVersion>7.3</LangVersion> |
... | ... | |
254 | 253 |
<DependentUpon>Resources.resx</DependentUpon> |
255 | 254 |
<DesignTime>True</DesignTime> |
256 | 255 |
</Compile> |
256 |
<None Include="App.config" /> |
|
257 |
<None Include="App.Debug.config"> |
|
258 |
<DependentUpon>App.config</DependentUpon> |
|
259 |
</None> |
|
260 |
<None Include="App.Release.config"> |
|
261 |
<DependentUpon>App.config</DependentUpon> |
|
262 |
</None> |
|
257 | 263 |
<None Include="Log.config"> |
258 | 264 |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
259 | 265 |
</None> |
... | ... | |
271 | 277 |
</None> |
272 | 278 |
</ItemGroup> |
273 | 279 |
<ItemGroup> |
274 |
<None Include="App.config" /> |
|
275 |
</ItemGroup> |
|
276 |
<ItemGroup> |
|
277 | 280 |
<None Include="Resources\Excel.png" /> |
278 | 281 |
</ItemGroup> |
279 | 282 |
<ItemGroup> |
... | ... | |
401 | 404 |
xcopy /I /E /S /y /f "$(SolutionDir)Markus\Markus.ini" "$(TargetDir)Markus.*" |
402 | 405 |
)</PostBuildEvent> |
403 | 406 |
</PropertyGroup> |
407 |
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" /> |
|
408 |
<Target Name="App_config_AfterCompile" AfterTargets="AfterCompile" Condition="Exists('App.$(Configuration).config')"> |
|
409 |
<!--Generate transformed app config in the intermediate directory--> |
|
410 |
<TransformXml Source="App.config" Destination="$(IntermediateOutputPath)$(TargetFileName).config" Transform="App.$(Configuration).config" /> |
|
411 |
<!--Force build process to use the transformed configuration file from now on.--> |
|
412 |
<ItemGroup> |
|
413 |
<AppConfigWithTargetPath Remove="App.config" /> |
|
414 |
<AppConfigWithTargetPath Include="$(IntermediateOutputPath)$(TargetFileName).config"> |
|
415 |
<TargetPath>$(TargetFileName).config</TargetPath> |
|
416 |
</AppConfigWithTargetPath> |
|
417 |
</ItemGroup> |
|
418 |
</Target> |
|
419 |
<!--Override After Publish to support ClickOnce AfterPublish. Target replaces the untransformed config file copied to the deployment directory with the transformed one.--> |
|
420 |
<Target Name="App_config_AfterPublish" AfterTargets="AfterPublish" Condition="Exists('App.$(Configuration).config')"> |
|
421 |
<PropertyGroup> |
|
422 |
<DeployedConfig>$(_DeploymentApplicationDir)$(TargetName)$(TargetExt).config$(_DeploymentFileMappingExtension)</DeployedConfig> |
|
423 |
</PropertyGroup> |
|
424 |
<!--Publish copies the untransformed App.config to deployment directory so overwrite it--> |
|
425 |
<Copy Condition="Exists('$(DeployedConfig)')" SourceFiles="$(IntermediateOutputPath)$(TargetFileName).config" DestinationFiles="$(DeployedConfig)" /> |
|
426 |
</Target> |
|
404 | 427 |
</Project> |
내보내기 Unified diff