Skip to content

Codepolice

  • ⤫

Finally have Subversion + CruiseControl.NET + MSBuild running

Posted by Judy Alvarez Posted on February 25, 2022March 1, 2022
0

I’ve been struggling the whole afternoon to get some kind of continuous integration up and running. It started with that I got sick and tired of the Publish feature in Visual Studio 2008 because it just starts to fail from time to time and it’s kind of impossible to find out why because it doesn’t give any kind of error information.

Anyway, I started to look at MSBuild and see if it could handle my Publish task and I found this great article. It explains how to make a build file that builds your project and then also simulates the publish feature and puts just the files necessary into a separate folder.

While I was on the subject I thought that I could as well see if I could set up my source control machine to build my app as soon as I check in some files, copy the build to a folder and make that folder a web application.

It actually was kind of easy. I found an article by Omar Al Zabir that explains this in great detail.

Not any problem at all?

Of course. The one I had the most problem with was the infamous Microsoft.WebApplication.targets bug. When you build your project on the build machine you get this error.

error MSB4019: The imported project “C:Program FilesMSBuildMicrosoftVisualStudiov9.0WebApplicationsMicrosoft.WebApplication.targets” was not found. Confirm that the path in the <Import> declaration is correct and that the file exists on disk.

I have had this problem before when we migrated a “Website” to a “Web application project” at my last job. What I remembered from it was that you had to copy the file Microsoft.WebApplication.targets from its location on your dev machine to the build machine. Well fine. The problem in my case was that the file already was there. I looked around for maybe an hour or until i realized that the path on my build machine was:

C:Program FilesMSBuildMicrosoftVisual Studiov9.0WebApplicationsMicrosoft.WebApplication.targets

While on my dev machine it was:

C:Program FilesMSBuildMicrosoftVisualStudiov9.0WebApplicationsMicrosoft.WebApplication.targets

Notice the difference? Don’t you just love Microsoft sometimes .. just copy the path and remove the space from “Visual Studio” and it works.

That was actually the only major problem I had. Otherwise, I used my brain and the articles I linked to and everything is a happy puppy.

Thanks and good night.

Categories: JavascriptTagged: asp net architecture, asp net cms, asp net control, asp net core authentication, asp net core download, asp net core hosting, asp net core signalr, asp net core vs asp net mvc, asp net developers, asp net gridview, asp net interview questions for 3 years experience, asp net logo, asp net mcq, asp net mvc life cycle, asp net upload file, asp net vs node js, asp net web api tutorials, asp net web application, crud operation in asp net mvc with entity framework, features of asp net, fileupload asp net, free asp net hosting, microsoft asp net, mvc asp net interview questions, mvc in asp net, session state in asp net, sessionstate in asp net, state management techniques in asp net, upload file asp net, web forms asp net

Post navigation

Previous Previous post: Group By with LINQ
Next Next post: Problems with Dean’s Permalinks Migration after WordPress 

Related Posts

  • Bringing Python apps into Node

    #​596 — October 14, 2025 Read on the Web 📂 A Modern Guide to Reading and Writing Files in Node — A comprehensive guide to various methods for working with files, from promise-based methods through to working with streams, processing files concurrently, using file handles, and memory-efficient techniques. Luciano Mammino A Way to Integrate Python ASGI with Node.js

    Posted by Posted on October 14, 2025
    0
  • Vite gets its own documentary

    #​756 — October 10, 2025 Read on the Web JavaScript Weekly ▶  Vite: The Documentary — From the same creators of the fantastic ▶️ Node.js, ▶️ Angular and ▶️ React documentaries comes an up to date look at Vite, the build tool that has taken the JavaScript ecosystem by storm in recent years. Many luminaries make an appearance to

    Posted by Posted on October 10, 2025
    0
  • npm security best practices to consider

    #​595 — October 7, 2025 Read on the Web 15 Recent Node Features That Can Replace Popular npm Packages — Many features that once required third-party packages are now built into the runtime itself. Here’s a look at some of the most notable that you may want to experiment with, prior to reducing unnecessary dependencies. Lizz

    Posted by Posted on October 7, 2025
    0
  • React 19.2 is in the building

    #​755 — October 3, 2025 Read on the Web JavaScript Weekly The State of JavaScript 2025 Survey — Each year, Devographics runs an epic survey of as many JavaScript community members as it can and turns the results into an interesting report on the state of the ecosystem – here’s the results from 2024. If

    Posted by Posted on October 3, 2025
    0
  • Using Node with Cloudflare Workers

    #​594 — September 30, 2025 Read on the Web 🗓️ We’re back after taking a week off for my birthday. I’ve never bothered to do that before, but I figured I’d give it a go, and.. it was good 😅 We’re now back every week until Christmas!__Peter Cooper, your editor A Year of Improving Node.js

    Posted by Posted on September 30, 2025
    0
  • The first browser with JavaScript landed 30 years ago

    #​754 — September 26, 2025 Read on the Web JavaScript Weekly Give Your AI Eyes: Introducing Chrome DevTools MCP — The Chrome team has released an MCP server for Chrome DevTools, enabling agents like Claude Code or OpenAI Codex to use the DevTools to debug and analyze the performance and behavior of your webapps (or

    Posted by Posted on September 26, 2025
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • Bringing Python apps into Node
  • Vite gets its own documentary
  • npm security best practices to consider
  • React 19.2 is in the building
  • Using Node with Cloudflare Workers
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice