Dotnet Core Build Error in Docker: Resource file “**/*.resx” cannot be found

While building my new .NET Core project using Docker I ran into an error with the two stage build:

/usr/share/dotnet/sdk/2.0.0/Microsoft.Common.CurrentVersion.targets(2924,5): error MSB3552: Resource file “**/*.resx” cannot be found. [/Hapthorn.csproj]
The command ‘/bin/sh -c dotnet publish -c Release -o out’ returned a non-zero code: 1

The problem it turned out was that while trying to tune my Dockerfile I’d accidentally removed the WORKDIR directive. As a result MSBuild was interpreting the *.resx as an absolute path instead of a grouping/collection directive.

To fix it I put back in a WORKDIR /src directive in my Dockerfile.

Quick and easy!

NoSQL and the End of Object Relational Models

There is a lot of buzz on the NoSQL track these days, and it is gaining a lot of traction in the blogger world. But in the old school world of big business and big government there isn’t much movement, at least not that I’ve seen. In these industries there is still a lot of entrenchment with database companies like Oracle and Microsoft. These companies have invested a lot of money into their relational database infrastructure.

Its hard to see the “death” of the relational database right now. I don’t think a switch-over from relational databases to non-relational databases is coming – but there is a game changer coming; another new technology getting a lot of buzz and traction in the blog world: Cloud Computing. I think the biggest driver in changing from relational to non-relational databases will be The Cloud.

Continue reading “NoSQL and the End of Object Relational Models”

Oh Unit Tests? Wherefore Art Thou, Unit Tests?

There are few things that help a developer maintain an application better than Unit Tests. There are a few things that make me nervous when I open a solution from VSS, but nothing makes me more nervous than a lack of unit tests projects.

I know the Unit Testing drum has been beaten for years, so instead of getting on a soap box and berating the Internet for not Unit Testing, I’m going to give you a story about a recent project I worked on, and how unit testing helped me succeed.

Continue reading “Oh Unit Tests? Wherefore Art Thou, Unit Tests?”

Google Chrome OS / Microsoft Bing

Google and Microsoft are starting a real “battle” of the titans, with Microsoft releasing a new search engine (Bing) and Google announcing Chrome OS.

The thing is, why are these two competing?  They both have their own monopolies in their own right, Google is now a verb meaning to search the web, and Microsoft Windows is the nearly ubiquitous operating system, even on netbooks.

The biggest problem I have with Google’s Chrome OS is that Microsoft is on the verge of releasing Windows 7, which according to many reviewers will be the best version of Windows yet – and it runs well on current Netbooks.  Chrome OS is going to be a ‘lightweight’ OS designed for running a web browser and web-based content.  This will mean that Netbooks based on Chrome OS can only run apps like Google Docs online instead of Microsoft Office, YouTube instead of Windows Media player.

I see the same problem with Microsoft’s Bing.  It doesn’t do anything I’m not already getting from Google search.  It just does the same thing, in the same way.  There is nothing really to help me do more, or bring me better quality search results than I’m already getting.

Continue reading “Google Chrome OS / Microsoft Bing”