Giter VIP home page Giter VIP logo

pipelines-dotnet-core's Introduction

Sample ASP.NET Core application for Azure Pipelines docs

For information on how to set up a pipeline for this repository, see Create your first pipeline. For more information on building .NET Core applications, see .NET Core.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all others rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.

pipelines-dotnet-core's People

Contributors

adventworks avatar alexhomer1 avatar andyjlewis avatar juliakm avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar pboramsft avatar soyfrien avatar syntaxc4 avatar vijayma avatar vijaymatest1 avatar vinodjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pipelines-dotnet-core's Issues

.Net core task restore does not use custom nuget.config file

Hello team, I found this repo from this link https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops&tabs=dotnetfive

I guess this repo handle issue of ".net core" pipeline task, if I was wrong, pls correct me.

Problem I want to report is ".NET CORE" pipe task does not use custom nuget.config file, this is what I configured

image

And this is log:

C:\hostedtoolcache\windows\dotnet\dotnet.exe restore D:\a\1\s\XXXX.XXXX.XXXX.Web.csproj --configfile D:\a\1\Nuget\tempNuGet_1102.config --no-cache --verbosity Detailed

It is using tempNuGet_1102.config not my file Nuget.Full.config from main folder of my solution

Is this a bug, if it is, please show me how can I do a quick-fix this

Thank you

Doesn't work on Windows

There may be more multiple reasons for that, but the very first one is that azure-pipelines.docker.yml/azure-pipelines.acr.yml uses script that doesn't work on Windows. Any reasons for it to not use pwsh instead?

Fail at CmdLine

I am trying to experiment with Azure Devops. I have followed the guideline here https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-yaml?view=vsts.
When the project build, it returns 1 error at CmdLine as shown in image.

I can not see why it fail. The solution file does exist in repo! What can cause this error?

error
With following text

2018-09-22T22:17:12.3314133Z ==============================================================================
2018-09-22T22:17:12.3333368Z Task         : Command Line
2018-09-22T22:17:12.3350751Z Description  : Run a command line script using cmd.exe on Windows and bash on macOS and Linux.
2018-09-22T22:17:12.3369629Z Version      : 2.136.0
2018-09-22T22:17:12.3386104Z Author       : Microsoft Corporation
2018-09-22T22:17:12.3403535Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
2018-09-22T22:17:12.3442298Z ==============================================================================
2018-09-22T22:17:14.9767672Z Generating script.
2018-09-22T22:17:14.9961228Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/3a32eacc-5a83-4680-a86f-9fab5ca0526a.sh
2018-09-22T22:17:22.8918313Z 
2018-09-22T22:17:23.0276449Z Welcome to .NET Core!
2018-09-22T22:17:23.0294288Z ---------------------
2018-09-22T22:17:23.0319528Z Learn more about .NET Core: https://aka.ms/dotnet-docs
2018-09-22T22:17:23.0341483Z Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
2018-09-22T22:17:23.0349644Z 
2018-09-22T22:17:23.0372128Z Telemetry
2018-09-22T22:17:23.0391008Z ---------
2018-09-22T22:17:23.0411027Z The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
2018-09-22T22:17:23.0420709Z 
2018-09-22T22:17:23.0437682Z Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
2018-09-22T22:17:24.1271923Z 
2018-09-22T22:17:24.1289979Z ASP.NET Core
2018-09-22T22:17:24.1307701Z ------------
2018-09-22T22:17:24.1325995Z Successfully installed the ASP.NET Core HTTPS Development Certificate.
2018-09-22T22:17:24.1344399Z To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). For establishing trust on other platforms refer to the platform specific documentation.
2018-09-22T22:17:24.1364867Z For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
2018-09-22T22:17:25.2658426Z Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
2018-09-22T22:17:25.2678050Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-09-22T22:17:25.2687391Z 
2018-09-22T22:17:25.6204774Z MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
2018-09-22T22:17:25.9731926Z MSBUILD : error MSB1009: Project file does not exist.
2018-09-22T22:17:25.9754031Z Switch: dotnetcore-tests
2018-09-22T22:17:26.2873405Z Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
2018-09-22T22:17:26.2890584Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-09-22T22:17:26.2900817Z 
2018-09-22T22:17:26.2920848Z MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
2018-09-22T22:17:26.3184721Z ##[error]Bash exited with code '1'.
2018-09-22T22:17:26.4183085Z ##[section]Finishing: CmdLine
)

YML does not publish

Apologies if I've got this completely wrong (I suspect I have as this is my first go), but have spent quite some time trying to get pipelines to build and release using this YML for an ASP.Net Core WebApi project.

This line:
- script: dotnet publish --configuration $(buildConfiguration) --output $(buildConfiguration)
will run, but with a warning:
##[warning]Directory '/home/vsts/work/1/a' is empty. Nothing will be added to build artifact 'drop'.
and won't publish a zipped file to be picked up for release, then in the release pipeline you get the following error:
Error: No package found with specified pattern: D:\a\r1\a\**\*.zip

instead, we needed to use DotNetCoreCLI for it to work:

- task: DotNetCoreCLI@2
  displayName: Publish
  inputs:
    command: publish
    publishWebProjects: False
    arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
    zipAfterPublish: True

All examples I've seen don't mention this at all, I only found it after looking at what the visual designer produced.

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.