visual studio 2012 - How do I stop msbuild from missing out files when doing a web publish? -


I have a solution with many projects with dependencies when I create a web site project, in the bin folder There are several sub-folders that belong to some AjaxControlToolkit.dll, folders generated by some dependency projects

everything works

If I use context menu (publish on file system) I publish, I get the same file Everything works.

When I publish a Web using MSBULL, I do not get a PDB file for dependency (but for the web site) I do not copy the folders to bin folder

It breaks a lot of stuff.

I do MSBuild in Step 2 - Compile in the source directory At this point, all the files and folders are present in the source bin folder 2 -> Publish in a new folder Dependent files depend on this point And the folders are not transferred.

For further investigation:

obj \ Release \ Package \ PackageTmp \ bin files not in this project

obj \ release \ CustomerPortal.csproj.FileListAbsolute List of .txt files

batch file

  SET MSBuild = "C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe" SET targetFolder = C: \ T Emp \ Customer_Build SET Configuration = Release% MSBUILD% "% targetBuildFolder% \ Customer.CustomerPortal.sln" / t: Build / p: Configuration =% Configuration%; BuildProjectReferences = true; Platform = "no CPU" & gt; & Gt; "% TargetFolder% build_all.log"% MSBUILD% "% targetBuildFolder% \ CustomerPortal \ CustomerPortal.csproj" / T: WebPublish / P: Publishing URL =% TargetColdFolder \\ _ B_MyCustomer \; Visual StudioWarsian = 11.0; WebPublishedMedicationFileSystem; Confirmation =% Configuration%; BuildProjectReferences = true; DeployOnBuild = True; PackageAsSingleFile = False; PrecompileBeforePublish = False; Excluded DebugSymbol = False; Platform = "AnyCPU" & gt; & Gt; "% TargetFolder% \ build_all.log"  

Publish Profile XML

  & lt; Project Toolversion = "4.0" xmlns = "http: // schemos microsoft.com/developer/msbuild/2003"> & Lt; PropertyGroup & gt; & Lt; WebPublishMethod & gt; FileSystem & lt; / WebPublishMethod & gt; & Lt; LastUsedBuildConfiguration & gt; Debug & lt; / LastUsedBuildConfiguration & gt; & Lt; Lastusplatform platform & gt; A cpu & lt; / LastUsplatform platform & gt; & Lt; SiteUrlToLaunchAfterPublish / & gt; & Lt; LaunchSiteAfterPublish & gt; This is true & lt; / LaunchSiteAfterPublish & gt; & Lt; ExcludeApp_Data & gt; This is true & lt; / ExcludeApp_Data & gt; & Lt; PublishUrl & gt; C: \ Temporary \ Customer_Build \ Deployed \ MyCustomer & lt; / PublishUrl & gt; & Lt; DeleteExistingFiles & gt; This is true & lt; / DeleteExistingFiles & gt; & Lt; / PropertyGroup & gt; & Lt; / Project & gt; Do anyone know that I can either do the following: 1. Specify a command line option that will allow the same behavior for profiles in the form of MSWUILD or 2. Use profile, but be able to override published folder and configuration 


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -