在wix工具集中为我的mvc网站创建msi安装程序时遇到问题。创建构建后,不会复制Roslyn文件夹。我是这项技术的新手
<Target Name="Build">
<!-- Compile whole solution in release mode -->
<MSBuild
Projects="..\DemoWebsite.sln"
Targets="Rebuild"
Properties="Configuration=Release" /> </Target>
<Target Name="PublishWebsite">
<!-- Remove complete publish folder in order to
be sure that evrything will be newly compiled -->
<Message Text="Removing publish directory: $(SetupF)"/>
<RemoveDir Directories="$(SetupF)" ContinueOnError="false" />
<Message Text="Start to publish website" Importance="high" />
<MSBuild
Projects="..\\DemoWebsite\DemoWebsite.csproj"
Targets="ResolveReferences;_CopyWebApplication"
Properties="OutDir=$(Publish)bin\;WebProjectOutputDir=
$(Publish);Configuration=Release" /> </Target> <Target Name="Harvest">
<!-- Harvest all content of published result -->
<Exec
Command='"$(WixPath)heat" dir $(Publish) -dr INSTALLFOLDER -ke -srd -cg MyWebWebComponents -var var.publishDir -gg -out $(WebSiteContentCode)'
ContinueOnError="false"
WorkingDirectory="." /> </Target>