Coder Social home page Coder Social logo

dotnetcore-sample's Introduction

dotnetcore-sample's People

Contributors

adventworks avatar alexhomer1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dotnetcore-sample's Issues

Docker Build Image Fails

I cloned the repo into a new VSTS repo and created a build which completes successfully. When I add a Docker Build Image step the build fails with error:
2018-05-04T01:12:38.5714753Z Step 3/4 : COPY dotnetcore-sample/out/dotnetcore-sample .
2018-05-04T01:12:38.6246950Z COPY failed: GetFileAttributesEx \?\C:\ProgramData\docker\tmp\docker-builder810107847\dotnetcore-sample\out\dotnetcore-sample: The system cannot find the path specified.
2018-05-04T01:12:38.6445927Z ##[error]C:\Program Files\Docker\docker.exe failed with return code: 1

broken when following the VSTS documentation

Setting up the default VSTS build for ASP.NET Core I get:

d:\a\1\s\dotnetcore-sample\dotnetcore-sample.csproj.metaproj : warning MSB4078: The project file "dotnetcore-sample\dotnetcore-sample.csproj" is not supported by MSBuild and cannot be built.
Done Building Project "d:\a\1\s\dotnetcore-sample\dotnetcore-sample.csproj.metaproj" (default targets).
dotnetcore-tests\dotnetcore-tests.csproj(1,1): Error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.
Project "d:\a\1\s\dotnetcore-sample.sln" (1) is building "d:\a\1\s\dotnetcore-tests\dotnetcore-tests.csproj" (3) on node 1 (default targets).
d:\a\1\s\dotnetcore-tests\dotnetcore-tests.csproj(1,1): error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.
Done Building Project "d:\a\1\s\dotnetcore-tests\dotnetcore-tests.csproj" (default targets) -- FAILED.
Done Building Project "d:\a\1\s\dotnetcore-sample.sln" (default targets) -- FAILED.
Build FAILED.
"d:\a\1\s\dotnetcore-sample.sln" (default target) (1) ->
"d:\a\1\s\dotnetcore-sample\dotnetcore-sample.csproj.metaproj" (default target) (2) ->
(Build target) -> 
  d:\a\1\s\dotnetcore-sample\dotnetcore-sample.csproj.metaproj : warning MSB4078: The project file "dotnetcore-sample\dotnetcore-sample.csproj" is not supported by MSBuild and cannot be built.
"d:\a\1\s\dotnetcore-sample.sln" (default target) (1) ->
"d:\a\1\s\dotnetcore-tests\dotnetcore-tests.csproj" (default target) (3) ->
  d:\a\1\s\dotnetcore-tests\dotnetcore-tests.csproj(1,1): error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.
    1 Warning(s)
    1 Error(s)
Time Elapsed 00:00:00.07
Process 'msbuild.exe' exited with code '1'.

Yet building locally it works fine:

MacBook-Pro:SimplePaaSSprint2 consensussolutions$ git remote show upstream
* remote upstream
  Fetch URL: https://github.com/adventworks/dotnetcore-sample.git
  Push  URL: https://github.com/adventworks/dotnetcore-sample.git
  HEAD branch: master
  Remote branch:
    master tracked
  Local ref configured for 'git push':
    master pushes to master (up to date)
MacBook-Pro:SimplePaaSSprint2 consensussolutions$ dotnet build
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  dotnetcore-sample -> /Users/Shared/SimplePaaSSprint2/dotnetcore-sample/bin/Debug/netcoreapp1.1/dotnetcore-sample.dll
  dotnetcore-tests -> /Users/Shared/SimplePaaSSprint2/dotnetcore-tests/bin/Debug/netcoreapp1.1/dotnetcore-tests.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:04.03
MacBook-Pro:SimplePaaSSprint2 consensussolutions$ dotnet --version
2.0.0
MacBook-Pro:SimplePaaSSprint2 consensussolutions$ 

Steps to reproduce on Azure hosted build:

  1. Create a new project on Azure.
  2. Create a new build for ASP.NET Core.
  3. Setup a hosted build agent.
  4. Let it run a build.

Works fine on my mac book pro building with dotnet 2.0.0 so not really sure why Azure cannot build it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.