MSBuild publishes website with embedded resources

I use the command line to invoke msbuild to create a published version of the website with this command:

msbuild.exe /t:ResolveReferences;Compile;_CopyWebApplication /p:OutDir=dir/bin/ /p:WebProjectOutputDir=dir/ /p:Debug=false /p:Configuration=Release Website.csproj 

This works great except for the built-in resources that are not present in Website.dll . If I publish through Visual Studio, it includes embedded resources. Is there a flag that I am missing?

+4
source share
2 answers

Will appear

 /t:PrepareResources 

causes all goals that you added to your msbuild call, try

yerving the top few levels of what is called

 PrepareResources PrepareResourceNames AssignTargetPaths SplitResourcesByCulture CreateManifestResourceNames CreateCustomManifestResourceNames ResGen ResolveAssemblyReferences SplitResourcesByCulture BeforeResGen CoreResGen AfterResGen CompileLicxFiles 
+4
source

Additional target required:

 msbuild.exe /t:PrepareResources;ResolveReferences;Compile;_CopyWebApplication /p:OutDir=dir/bin/ /p:WebProjectOutputDir=dir/ /p:Debug=false /p:Configuration=Release Website.csproj 
+4
source

All Articles