ASP.NET 프로젝트, WIX 설치 프로젝트, 설치 프로그램 용 빌드 파일이 있습니다. 빌드 파일 :WIX - 설치 중에 설정 파일을 변경하십시오.
- 는
- 디렉토리에 웹 사이트를 게시합니다 내 프로젝트 구축 (
SetupFiles/publish/
) - 윅스의
heat.exe
'수확의 웹 사이트의 파일 그 후 - 는
candle.exe
및light.exe
하여 설치를 생성
설정 파일 (Web.Release.config
, fr을 수확 한 파일 중 하나를 수정하고 싶습니다. om SetupFiles/publish
디렉토리)에 설치하십시오. 다음 코드를 찾았습니다.
<Component Id="ChangeConfig" Guid="[YOUR_GUID_HERE]">
<File Id="App.config" Name="MyApplication.exe.config" Vital="yes" KeyPath="yes" Source="[Path to project dir]\app.config" />
<util:XmlFile Id="AppConfigSetConnStr" Action="setValue" Permanent="yes" File="[#App.config]"
ElementPath="/configuration/connectionStrings/add[\[]@name='MyDatabaseName'[\]]" Name="connectionString"
Value="Your Connection string values here" />
</Component>
질문.
내 문제는 파일의 태그 원본 속성에 무엇을 써야합니까? 내가 SetupFiles/publish/Web.Release.config
를 작성하는 경우, light.exe 다음과 같은 오류 제공 : 단순히 Web.Release.config
작성하는 경우
D:\Works\Employer\MyProject12345\trunk\Project.Setup\SetConfigFile.wxs(7): er
ror LGHT0204: ICE30: The target file 'cktmp8gm.con|Web.Release.config' is insta
lled in '[TARGETDIR]\Inetpub\Proje\' by two different components on an LFN syst
em: 'cmpA0B9415D5BC7EAB6CA7F504326ED1B32' and 'ChangeConfig'. This breaks compo
nent reference counting. [D:\Works\Employer\MyProject12345\trunk\Project.Setup\
setup.build]
을의 light.exe는 파일을 찾을 수 없습니다 말했다.
[INSTALLDIR]/Web.Release.config
(INSTALLDIR
은 설치 프로젝트의 변수 임)을 시도했지만이 경우 light.exe는 파일을 찾을 수 없다고 말합니다.
도움 주셔서 감사합니다.
네는, 두 번째는 내 상황입니다. XmlConfig의'File' 속성에 무엇을 써야합니까? –
[INSTALLLOCATION]이라고 불리는 Wix에 변수가 있다고 가정하면 파일 속성은 [INSTALLLOCATION] \ web.config와 같아야합니다. – Hargrovm