개정판 7c549195
ServiceController/StationControllerService/Web.config tranform
Change-Id: I6d3e64f5a6aaa12e4e61200c4f3fb249b19a5455
ConvertService/ServiceController/StationControllerService/StationControllerService.csproj | ||
---|---|---|
1 |
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
2 | 3 |
<Import Project="..\packages\EntityFramework.6.4.0\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.4.0\build\EntityFramework.props')" /> |
3 | 4 |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
4 | 5 |
<PropertyGroup> |
5 | 6 |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
6 | 7 |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
7 |
<ProductVersion> |
|
8 |
</ProductVersion> |
|
8 |
<ProductVersion></ProductVersion> |
|
9 | 9 |
<SchemaVersion>2.0</SchemaVersion> |
10 | 10 |
<ProjectGuid>{B06C0A20-BC30-4A3E-8D74-E0E2FF55510F}</ProjectGuid> |
11 | 11 |
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> |
... | ... | |
23 | 23 |
<IISExpressWindowsAuthentication /> |
24 | 24 |
<IISExpressUseClassicPipelineMode /> |
25 | 25 |
<UseGlobalApplicationHostFile /> |
26 |
<NuGetPackageImportStamp> |
|
27 |
</NuGetPackageImportStamp> |
|
26 |
<NuGetPackageImportStamp></NuGetPackageImportStamp> |
|
28 | 27 |
<TargetFrameworkProfile /> |
29 | 28 |
</PropertyGroup> |
30 | 29 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
... | ... | |
202 | 201 |
<IISUrl>http://localhost:55508/</IISUrl> |
203 | 202 |
<NTLMAuthentication>False</NTLMAuthentication> |
204 | 203 |
<UseCustomServer>False</UseCustomServer> |
205 |
<CustomServerUrl> |
|
206 |
</CustomServerUrl> |
|
204 |
<CustomServerUrl></CustomServerUrl> |
|
207 | 205 |
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> |
208 | 206 |
</WebProjectProperties> |
209 | 207 |
</FlavorProperties> |
... | ... | |
224 | 222 |
<Target Name="AfterBuild"> |
225 | 223 |
</Target> |
226 | 224 |
--> |
225 |
<Target Name="BeforeBuild"> |
|
226 |
<TransformXml Source="Web.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> |
|
227 |
</Target> |
|
228 |
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" /> |
|
229 |
<Target Name="Web_config_AfterBuild" AfterTargets="AfterBuild" Condition="Exists('Web.$(Configuration).config')"> |
|
230 |
<TransformXml Source="Web.config" Destination="$(OutputPath)Web.config" Transform="Web.$(Configuration).config" /> |
|
231 |
</Target> |
|
227 | 232 |
</Project> |
ConvertService/ServiceController/StationControllerService/Web.Debug.config | ||
---|---|---|
3 | 3 |
<!-- web.config 변환 사용에 대한 자세한 내용은 https://go.microsoft.com/fwlink/?LinkId=125889를 참조하세요. --> |
4 | 4 |
|
5 | 5 |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> |
6 |
<!-- |
|
7 |
아래 예에서, "Match" 로케이터가 "MyDB" 값을 가진 "name" 특성을 |
|
8 |
찾은 경우에만 "SetAttributes" 변환에서 "ReleaseSQLServer"를 |
|
9 |
사용하도록 "connectionString"의 값을 변경합니다. |
|
10 |
|
|
11 |
<connectionStrings> |
|
12 |
<add name="MyDB" |
|
13 |
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" |
|
14 |
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> |
|
15 |
</connectionStrings> |
|
16 |
--> |
|
17 |
<system.web> |
|
18 |
<!-- |
|
19 |
|
|
20 |
아래 예에서 "Replace" 변환은 web.config 파일의 |
|
21 |
<customErrors> 섹션 전체를 바꿉니다. |
|
22 |
<system.web> 노드 아래에는 customErrors 섹션이 하나만 있기 때문에 |
|
23 |
"xdt:Locator" 특성을 사용할 필요가 없습니다. |
|
24 |
|
|
25 |
<customErrors defaultRedirect="GenericError.htm" |
|
26 |
mode="RemoteOnly" xdt:Transform="Replace"> |
|
27 |
<error statusCode="500" redirect="InternalError.htm"/> |
|
28 |
</customErrors> |
|
29 |
> |
|
30 |
--> |
|
31 |
</system.web> |
|
6 |
<connectionStrings xdt:Transform="Replace"> |
|
7 |
<!--doftech Connection String--> |
|
8 |
<add name="markusEntities" connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient" |
|
9 |
xdt:Locator="Match(name)" xdt:Transform="SetAttributes"/> |
|
10 |
</connectionStrings> |
|
32 | 11 |
</configuration> |
ConvertService/ServiceController/StationControllerService/Web.Debug_HS.config | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
|
|
3 |
<!-- web.config 변환 사용에 대한 자세한 내용은 https://go.microsoft.com/fwlink/?LinkId=125889를 참조하세요. --> |
|
4 |
|
|
5 | 2 |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> |
6 | 3 |
<connectionStrings xdt:Transform="Replace"> |
7 | 4 |
<!--효성 Connection String--> |
ConvertService/ServiceController/StationControllerService/Web.config | ||
---|---|---|
49 | 49 |
</providers> |
50 | 50 |
</entityFramework> |
51 | 51 |
<connectionStrings> |
52 |
<add name="markusEntities" connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient"/> |
|
52 |
<!--doftech Connection String--> |
|
53 |
<add name="markusEntities" |
|
54 |
connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;application name=EntityFramework"" |
|
55 |
providerName="System.Data.EntityClient"/> |
|
53 | 56 |
</connectionStrings> |
54 | 57 |
</configuration> |
내보내기 Unified diff