Unable to build Calamari

I’m getting the following error when building the latest of Calamari sources

Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Compiling build script...

----------------------------------------
Setup
----------------------------------------
Executing custom setup action...
Building Calamari v3.7.67

========================================
__Clean
========================================
Executing task: __Clean
Cleaning directory D:/dev/github/OctopusDeploy/Calamari/built-packages
The provided pattern did not match any directories.
The provided pattern did not match any directories.
Finished executing task: __Clean

========================================
__Restore
========================================
Executing task: __Restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
An error occurred when executing task '__Restore'.

----------------------------------------
Teardown
----------------------------------------
Executing custom teardown action...
Cleaning up
Finished running tasks for build v3.7.67
Error: .NET Core CLI: Process returned an error (exit code 1).

Here are the steps I’ve done.

  1. Installed DotNet Core 1.1 from https://www.microsoft.com/net/core#windowscmd

  2. Opened a command prompt, and verified that I had dotnet installed

    dotnet --version

Which reported 1.0.4.

  1. Cloned the Calimari sources into d:\dev\github\OctopusDeploy\Calimari and executed the build.cmd script.

  2. This is a regular Windows Command Prompt, msbuild.exe and devenv.exe are not in my PATH variable.

Note, I can run build.cmd -target __Clean and it does execute without error.

Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Compiling build script...

----------------------------------------
Setup
----------------------------------------
Executing custom setup action...
Building Calamari v3.7.67

========================================
__Clean
========================================
Executing task: __Clean
Cleaning directory D:/dev/github/OctopusDeploy/Calamari/built-packages
The provided pattern did not match any directories.
The provided pattern did not match any directories.
Finished executing task: __Clean

----------------------------------------
Teardown
----------------------------------------
Executing custom teardown action...
Cleaning up
Finished running tasks for build v3.7.67

Task                          Duration
--------------------------------------------------
__Clean                       00:00:00.0612754
--------------------------------------------------
Total:                        00:00:00.0612754

My mistake guys. It’s right there in the global.json file. I needed to have dotnet core 1.0.0 preview 2 installed.

1.0.0-preview2-003133.

I had 1.0.0-preview2-003131, not 003133, and 1.0.3 and 1.0.4. Once I installed 1.0.0-preview2-003133, I was able to build without errors.