Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 74813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:25:01+00:00 2026-05-10T20:25:01+00:00

All, I currently have my solution comprising of 2 Class librarys and a Web

  • 0

All,

I currently have my solution comprising of 2 Class librarys and a Web Site building within teamCity using Msbuild. Now I want to precompile the website and make it available as an artifact. However when i try to Precompile it using

<Target Name='PrecompileWeb' DependsOnTargets='Build'>     <AspNetCompiler         PhysicalPath='$(BuildDir)\Location\'          TargetPath='$(BuildDir)\Publish'         Force='true'         Debug='true'          />   </Target> 

I get an error becasue it is looking for a virtual path (which i don’t have as all I want to do it precompile the files I am not interested in publishing the site) if I put a dummy path in I get another error (correctly) about it not being an application under IIS

Any ideas

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:25:02+00:00Added an answer on May 10, 2026 at 8:25 pm

    Is this a Web Site or Web Application Project? If the latter, instead of doing an AspNetCompiler task, do an MSBuild task to the csproj/vbproj file, calling the targets Rebuild;ResolveReferences;_CopyWebApplication and specifying the OutDir property.

    If you are using a website, then specify the VirtualPath to be a valid IIS path. What is happening is that, when you don’t specify the VirtualPath property, it tries to resolve it using the PhysicalPath and IIS. I believe that’s just an artifact of how the AspNetCompiler works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have a larger Solution with different projects (A web application and a
I'm using Windows 7 (all latest updates installed), and currently have DirectX 11 installed
Currently I have a C# solution that contains a class library, installer, and setup
Currently have a solution that was created in VS2003 went to VS2005 and now
I currently have a set of divs (buttons) that all hover various colors using
Trying to get a list of all substrings currently I have a function but
I currently have the following SQL query that lists all the names of all
We currently have an error catching script for all our PHP sites. This script
I currently have a issue with firefox, where all other browser behave in the
I currently have a bunch of repositories like so IMyRepository IAnotherRepository They all inherit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.