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

  • Playwright now offers a UI mode

    #​631 — March 24, 2023 Read on the Web JavaScript Weekly Speeding Up the JavaScript Ecosystem: npm Scripts — The latest in what has been a fascinating series on finding ‘low hanging fruit’ when it comes to performance in the JavaScript world. The author explains it best himself: “‘npm scripts’ are executed by JavaScript developers

    Posted by Posted on March 24, 2023
    0
  • Everyone’s coming for Node.js this week

    #​479 — March 23, 2023 Read on the Web 🔒  npm Granular Access Tokens Now Generally Available — The granular access token feature on the npm registry is now generally available, allowing you to restrict token access to specific packages, set expiration dates, limit access by IP range, and more. GitHub Automatic npm Publishing with GitHub

    Posted by Posted on March 23, 2023
    0
  • Transformers: JavaScript in Disguise

    #​630 — March 17, 2023 Read on the Web JavaScript Weekly 🤖  Transformers.js: Running ML Models in the Browser — Transformers are a type of machine learning model often used for natural language or visual processing and while running such models directly in the browser is in its infancy, Transformers.js opens up some ML models

    Posted by Posted on March 17, 2023
    0
  • Shell-free scripting from Node

    #​478 — March 16, 2023 Read on the Web Shell-Free Scripts with Execa 7.1 — Execa is a popular process execution library for Node and the latest version includes an interesting $ method feature for writing zx-style scripts with it, making it even more useful for shell scripting style usecases. ehmicky Turbowatch: File Change Detector and

    Posted by Posted on March 16, 2023
    0
  • New JavaScript features of the past few years

    #​629 — March 10, 2023 Read on the Web JavaScript Weekly JavaScript Features from the Past Few Years — Packed with examples, this post tackles the changes and tweaks to JavaScript and TypeScript over the past several years (some as far back as ES6/ES2015, like tagged template literals). Linus Schlumberger Astro’s 2023 Web Framework Performance Report —

    Posted by Posted on March 10, 2023
    0
  • Taking flight with Feathers 5

    #​477 — March 9, 2023 Read on the Web Feathers 5: The API and Real-Time App Framework — Feathers isn’t as well known as Nest or Fastify, say, but it’s a powerful and mature option if you want to spin up a Node CRUD app tied to a database and now it’s “TypeScript all the

    Posted by Posted on March 9, 2023
    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
  • Playwright now offers a UI mode
  • Everyone’s coming for Node.js this week
  • Transformers: JavaScript in Disguise
  • Shell-free scripting from Node
  • New JavaScript features of the past few years
https://flatlogic.com/generator
COPYRIGHT © 2023 - Codepolice