Trying to build csproj-based ASP .Net Core 1.1 project

Gabriel Robert's Avatar

Gabriel Robert

31 Jan, 2017 08:30 PM

I'm trying to build a csproj-based project that require VS17. Any idea how to make this work on Appveyor?

I tried using GCE image - without success.

At root [good way to build]

dotnet restore
warn : The folder 'C:\projects\test-project' does not contain a project to restore.

dotnet build
Couldn't find 'project.json' in current directory

Trying with .sln file

dotnet restore test-project.sln
error: Invalid input 'test-project.sln'. The file type was not recognized.

dotnet build test-project.sln
Object reference not set to an instance of an object.
Command exited with code 1

Base appveyor.yml:

version: '1.0.{build}'
os: Visual Studio 2015

install:
- "SET PATH=C:\Program Files\dotnet\bin;%PATH%"

branches:
only: - develop

assembly_info:
patch: true file: '**\AssemblyInfo.*' assembly_version: '{version}' assembly_file_version: '{version}' assembly_informational_version: '{version}'

build_script:
- nuget sources add -name "VNext" -source https://dotnet.myget.org/F/cli-deps/api/v3/index.json - nuget sources add -name "nugetv3" -source https://api.nuget.org/v3/index.json - dotnet restore - dotnet build

Thank you

  1. 1 Posted by luis.lafer-sous... on 14 Mar, 2017 05:20 AM

    luis.lafer-sousa's Avatar

    I am hitting this same problem, and saw this on GitHub:

    "This week we are releasing new image with VS 2017 RTM and Win2016 with docker combined. By default it will be available to everyone who already have access to current VS 2017 RC or Win2016 and to everyone who asked. After first iteration of patches we will make it GA."

    What is the name of the combined image? I had Win2016 access so assume I will have access to the new image.

    Thanks!

  2. Support Staff 2 Posted by Ilya Finkelshte... on 15 Mar, 2017 01:03 AM

    Ilya Finkelshteyn's Avatar

    New image name is Visual Studio 2017. Please let us know if this helps. If not, it would be great to have a repro in public repository to investigate.

    Thanks!
    Ilya.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac