Je cherche un moyen de remplacer l'élément path.aspnetcompiler.physical du fichier .sln. En regardant la référence micrsoft msbuild, il ne semble pas possible de remplacer cette sortie spécifique. Je me demandais si quelqu'un a passé dans un chemin physique à travers un script de construction. Mon script est ci-dessous. Nous vous remercions de votre aidemsbuild redéfinir le chemin physique du fichier .sln
script msbuild
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="deploy">
<MSBuild Projects="foo.sln" Properties="Configuration=Release;OutDir=..\temp\;PhysicalPath=\fooBar" ContinueOnError="false" />
</Target>
</Project>
fichier solution
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "foo", ".", "{3D958438-10F1-4211-BC7F-F0A5E5601C3F}"
ProjectSection(WebsiteProperties) = preProject
TargetFramework = "3.5"
Debug.AspNetCompiler.VirtualPath = "/foo"
Debug.AspNetCompiler.PhysicalPath = "..\foo\"
Debug.AspNetCompiler.TargetPath = "..\..\PrecompiledWeb\foo\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/foo"
***Release.AspNetCompiler.PhysicalPath = "..\foo\"***
Release.AspNetCompiler.TargetPath = "..\..\PrecompiledWeb\foo\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "51644"
DefaultWebSiteLanguage = "Visual Basic"
EndProjectSection
EndProject
Qu'est-ce que l'ajout/v: diag vous dire sur le chemin de sortie et l'effet de vos remplacements de propriétés? –
il me donne "project_3d958438-10f1-4211-bc7f-f0a5e5601c3f_AspNetPhysicalPath = .. \ foo" – gh9