bootnext icon indicating copy to clipboard operation
bootnext copied to clipboard

How to build it from command line? (no appveyor)

Open josephernest opened this issue 5 years ago • 3 comments

I tried something like:

  • clone the repo

  • go to bootnext-master

  • launch this:

      "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" bootnext.sln
    

    or

      "C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" bootnext.sln
    

    and/or /property:Configuration="Release|x64"

  • but it always failed because I don't have the right version:

error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed.

But I already have many versions (more recent) of .NET framework (Developer pack) installed:

image

Is there a way to automate the install of the dependecies needed to build your project?

Something that can be done 100% from command-line? (I don't have the Visual Studio IDE, I don't use it).

Thanks again!

josephernest avatar Jun 24 '20 09:06 josephernest

You need the specific targeting pack for the version you are building for. Alternatively, you can change the target framework version in the build configuration.

pgaskin avatar Jun 24 '20 14:06 pgaskin

I'll try to build with the same tools than you.

Which ms visual studio build tools version did you use ? (2019 ? 2017 ? 2015 ?) And which NET framework version ?

Which command line command would you use:

msbuild.exe /...

Thanks again!

josephernest avatar Jun 24 '20 14:06 josephernest

You need to pass msbuild the sln file IIRC.

pgaskin avatar Jun 29 '20 11:06 pgaskin