Web Setup project not generating .msi file - asp.net

I have a solution with a web setup project and a large website project in visual studio 2008.
When building the setup project it removes the setup.exe and the .msi file (which it is supposed to), the error occurs when it creates these files.
It creates the setup.exe file but not the .msi file, in its place is a .tmp
Let me know if more information is needed. I am thankful for the help.
Below is the output window and error.
------ Build started: Project: C:\...\GrandUnifiedWebSliceTheory\, Configuration: Debug Any CPU ------
Validating Web Site
Building directory '/GrandUnifiedWebSliceTheory/19002_DistrictManagement/'.
Building directory '/GrandUnifiedWebSliceTheory/19005_ManualAdjustment/'.
Building directory '/GrandUnifiedWebSliceTheory/19010_AllStatementListing/'.
Building directory '/GrandUnifiedWebSliceTheory/19050_MortgageExport/'.
Building directory '/GrandUnifiedWebSliceTheory/19060_StatementDataExport/'.
Building directory '/GrandUnifiedWebSliceTheory/24570_ParcelPermit/'.
Building directory '/GrandUnifiedWebSliceTheory/29571_OpenSpaceTimberRemoval/'.
Building directory '/GrandUnifiedWebSliceTheory/29572_DFLRemoval/'.
Building directory '/GrandUnifiedWebSliceTheory/29605_ExemptStatusChange/'.
Building directory '/GrandUnifiedWebSliceTheory/29606_DestroyedProperty/'.
Building directory '/GrandUnifiedWebSliceTheory/82005_GDoc_BuildingPermit/'.
Building directory '/GrandUnifiedWebSliceTheory/9520_QuickViewAA/19097_RelatedSta/'.
Building directory '/GrandUnifiedWebSliceTheory/9520_QuickViewAA/19098_TxRollCorrect/'.
Building directory '/GrandUnifiedWebSliceTheory/9520_QuickViewAA/24555_BuildingPermit/'.
Building directory '/GrandUnifiedWebSliceTheory/9520_QuickViewAA/25030_ParcelSaleHistory/'.
Building directory '/GrandUnifiedWebSliceTheory/9520_QuickViewAA/25099_QuickValueSummary/'.
Building directory '/GrandUnifiedWebSliceTheory/9520_QuickViewAA/9702_GISImaging/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/19097_RelatedSta/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/19098_TxRollCorrect/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/19099_Ownership/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/25030_ParcelSaleHistory/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/25099_QuickValueSummary/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/95020_StatementHeaders/'.
Building directory '/GrandUnifiedWebSliceTheory/9521_QuickViewTR/JS/'.
Building directory '/GrandUnifiedWebSliceTheory/96010_OwnerSummary/'.
Building directory '/GrandUnifiedWebSliceTheory/JS/'.
Building directory '/GrandUnifiedWebSliceTheory/'.
Validation Complete
------ Starting pre-build validation for project 'GuwtSetup' ------
------ Pre-build validation for project 'GuwtSetup' completed ------
------ Build started: Project: GuwtSetup, Configuration: Release ------
Building file 'C:\Documents and Settings\Desktop\svn\GrandUnifiedWebSliceTheory\GuwtSetup\Release\GuwtSetup.msi'...
**ERROR: Could not find file 'C:\Documents and Settings\Desktop\svn\GrandUnifiedWebSliceTheory\GuwtSetup\Release\GuwtSetup.msi' 'The system cannot find the file specified.'**
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========
Figured it out thank you for all the views. The answer was, somehow in the project properties the web setup project release checkbox was marked. Unchecking this box allowed somehow fixed the problem

Watch the output panel, it will probably indicate what the error is.

Figured it out thank you for all the views. The answer was, somehow in the project properties the web setup project release checkbox was marked. Unchecking this box allowed somehow fixed the problem

Related

What is the difference between 'Build directory' and 'Working directory' in Qt?

In Qt creator, and in the 'Projects' tab; under 'Build' there is the 'Build directory'.
And under 'Run', there is the 'working directory'.
What is the difference between these two directories? Are not they supposed to be the same? Since the project is going to be built in one directory, the produced executable is going to be in that directory, but not another one, isn't it?
Thank you.
The build directory is where Qt will build your project.
The working / current directory is the directory the application is currently working in. This can be set in a number of ways, on shortcut level, when you start a process, when you execute an application from another directory command prompt, or internally via the static QDir::setCurrent() function.
Not to be confused with the application directory, which is where the application executable resides.

Sharing .netcore project between windows and linux Keeps adding files

I am working on a group project and we have decided to use netcore for the project. The project was originally created using VS.
When I pull the project and run it using VSCode, I have noticed two things:
I have to navigate to the src folder and run it from there.
Before pushing new changes to the master branch, .netcore on linux has made changes to obj folder and added .vscode folder.
how can I stop this from happening so we don't step over each others toes, and why does this happen?
Thanks.
You should not add the files under obj to source control. It contains artifacts that are regenerated on every build.
If you use git, here's a suggested list of files and folders to ignore:
[Oo]bj/
[Bb]in/
.vs/
*.xap
*.user
/TestResults
*.vspscc
*.vssscc
*.suo
*.cache
*.docstates
_ReSharper.*
*.csproj.user
*[Rr]e[Ss]harper.user
_ReSharper.*/
packages/*
artifacts/*
msbuild.log
PublishProfiles/
*.psess
*.vsp
*.pidb
*.userprefs
*DS_Store
*.ncrunchsolution
*.log
*.vspx
/.symbols
nuget.exe
build/
*net45.csproj
*k10.csproj
App_Data/
bower_components
node_modules
*.sln.ide
*.ng.ts
*.sln.ide
project.lock.json
.build/
.testpublish/
launchSettings.json

Visual Studio web project publish not working

I have a finished web project ready to publish. It works fine when I run it in Visual Studio. Then I go to publish it. Visual Studio claims the publication was successful, but when I go to the site on IIS it does not work. The published file system doesn't even have the Images folder, and the links to the Scripts and other folders don't work.
To describe what's happening, first I choose Build-->Publish site. I create a publish profile like so:
Then I publish it as a File System and pick the folder:
Then I publish it as Release:
Then I press Publish:
Here is the output of the publish website by Visual Studio:
------ Build started: Project: LangSite, Configuration: Release Any CPU ------
LangSite -> C:\Users\Administrator\documents\visual studio 2013\Projects\LangSite_151209\LangSite_151209\bin\LangSite_151209.dll
------ Publish started: Project: LangSite, Configuration: Release Any CPU ------
Connecting to C:\Users\Administrator\Documents\LangTestSite...
Transformed Web.config using C:\Users\Administrator\documents\visual studio 2013\Projects\LangSite_151209\LangSite_151209\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
Copying all files to temporary location below for package/publish:
obj\Release\Package\PackageTmp.
Publishing folder /...
Publishing folder Areas...
Publishing folder Areas/HelpPage...
Publishing folder Areas/HelpPage/Views...
Publishing folder Areas/HelpPage/Views/Help...
Publishing folder Areas/HelpPage/Views/Help/DisplayTemplates...
Publishing folder Areas/HelpPage/Views/Shared...
Publishing folder bin...
Publishing folder Content...
Publishing folder fonts...
Publishing folder Scripts...
Publishing folder Views...
Publishing folder Views/Home...
Publishing folder Views/Shared...
Site was published successfully file:///C:/Users/Administrator/Documents/LangTestSite
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
Here is the layout of the file folders in Visual Studio:
And here is the file structure of the published site. Notice, no Images folder:
When I try to go to the site, I get a page of broken links:
Clearly I am not using the publish web project correctly, but I don't see any different way to do it. What am I doing wrong?
Chances are that your images are in the file system, but they are not in your actual project.
You'll want to tell Visual Studio to 'show all files' its one of the icons in the top of the solution explorer. From there you can see the grayed out items show up under the images folder, and right click and "include in project".

error ASPPARSE: Could not load type error with msbuild on teamcity

I'm receiving error ASPPARSE: Could not load type error when building a project on team city.
The file it is failing on is a folder which is not referenced in the project but is just there for source control.
C:\TC\Agents\3\work\fd3ea8938fa12582>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler -v /DummyDeployWeb -p C:\TC\Agents\3\work\fd3ea8938fa12582\Project C:\TC\Agents\3\work\fd3ea8938fa12582\PreCompiled\Project-fixednames -u
ERROR
/DummyDeployWeb/common/files/somefilename.ascx(1): error ASPPARSE: Could not load type 'Project.somefilename'
How can I get the project to build and ignore these folders that arent referenced?
The ASP.NET compiler knows nothing about project files, it simply processes the entire contents of the folder you point it at.
There is no way to tell the compiler to exclude specific files and so if this is a requirement for you then one solution would be to move these files out of the folder before you run the compiler and then copy them into the deployment folder after the compilation is complete.

pubxml web publish tool Event Lifecycle

I am using the Web publishing tool from Visual Studio 2012 to publish to File System. I learned that I can open my *.pubxml in the Properties folder to do more advanced things.
What I want to do is run a command line application at the end of the publishing task.
I would usually do it in a Custom Target and execute it after one of the build in Events like this.
<Target Name="CustomAfterPublish" AfterTargets="GatherAllFilesToPublish">
</Target>
The problem is that GatherAllFilesToPublish is way to early because I want to execute it at the very last, after publishing was done.
Is there a list or does someone know the build in events and there order in which they are fired? Basically the Event Lifecycle of a FileSystem web publish.
Or how can I fire a Target manually at the very end?
I tried following without success:
<Target Name="Msg" AfterTargets="PipelineDeployPhase;MSDeployPublish;Package">
And also every each of them individually.
So what's the very last hook of the publishing lifecycle?
---> Edited
I added already tracing. The problem is that the files were copied to a temp path and after that all files are deleted. So copying to the destination will not work after "GatherAllFilesToPublish"See my trace from the command line window here...
1>------ Build started: Project: Dependency of a project: Release Any CPU ------
2>------ Build started: Project: Dependency of another project, Configuration: Release Any CPU ------
3>------ Build started: Project: Web, Configuration: Release Any CPU ------
4>------ Publish started: Project: Web, Configuration: Release Any CPU ------
4>Transformed Web.config using C:\...\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
4>Copying all files to temporary location below for package/publish:
4>obj\Release\Package\PackageTmp.
**<------------- Here is the place where my excutable is called ---------------------------------**
4>Deleting existing files...
4>Publishing folder /...
4>Publishing folder App_Browsers...
4>Publishing folder App_Themes...
4>Publishing folder bin...
4>Site was published successfully file:///C:/Test
4>
========== Build: 3 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
Thanks for any help.
As far as I can tell GatherAllFilesToPublish is the last event available. However, depending on your requirements you may still be able to use this event.
Instead of performing operations on files in the final publish location, you can target the intermediate files written to the location below (where ProjectDir is the folder of your project obviously)
/ProjectDir/obj/Release/Package/PackageTmp/
It seems that Visual Studio does a straight copy of all files in this directory. So, when hooking into GatherAllFilesToPublish you should be able to make any changes to the files in this directory and they will be reflected in the final publish location.
Related Information
If you'd like to verify that GatherAllFilesToPublish is truly the last event you can do this yourself by enabling Diagnostic build output.
Tools -> Options -> Projects and Solutions -> Build and Run -> MSBuild
project build output verbosity -> Diagnostic
Build the project and search for Done building target "GatherAllFilesToPublish", for me this was the last trigger before it started copying the files to the publish location.
I had the same problem. Your solution
Coping first to the temp directory and let web publish picking up the
coping for publishing
was helpful.
I just want to share for other people how it can be done:
<Target Name="CopyConfigForPublish" AfterTargets="CopyAllFilesToSingleFolderForPackage" Condition="exists('$(SolutionDir)Web.Common\bin\$(Configuration)\Log.config')">
<Copy SourceFiles="$(SolutionDir)Web.Common\bin\$(Configuration)\Log.config" DestinationFolder="$(WPPAllFilesInSingleFolder)" />
</Target>
I had a similar issue.
As far as i could check, "GatherAllFilesToPublish" is the last target you can deal with. You can use it doing an AfterTargets.
And use this >
$(MSBuildProjectDirectory)\obj\Release\Package\PackageTmp
To manipulate anything there.
What I did was creating an .bat file to do the dirty work.
You can find out which one is the variable that stores the relative part of the path (\obj\Release\Package\PackageTmp) and use it on more refined way.

Resources