这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@akshita31
Copy link
Contributor

@akshita31 akshita31 commented May 22, 2019

This PR adds a template which can be installed using a nuget package as follows:

  1. dotnet new -i Microsoft.DotNet.Try.ProjectTemplate.Tutorial
    (Right now we will have to use fully qulified path to the nupkg so something like
    dotnet new -i ./Microsoft.DotNet.Try.ProjectTemplate.Tutorial.1.0.44142.42.nupkg)

This would add the template to the list of templates in dotnet new and the output would be like below:
image

  1. Execute dotnet new trydotnet-tutorial.

This would create a project file, a Program.cs and a Readme.md which will have reference to the project and the program file. Now you can execute "dotnet try" directly in this repository.

"DateTime" => DateTime(),
"Guid" => Guid(),
"EmptyRegion" => EmptyRegion(),
_ => EmptyRegion()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😀

Copy link
Contributor

@jonsequitur jonsequitur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@brettfo brettfo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see the template .nupkg getting built in the log; the project Microsoft.DotNet.Try.ProjectTemplate.Tutorial.csproj needs to be added to the solution.

@akshita31
Copy link
Contributor Author

@brettfo Where can I see those logs ?

@brettfo
Copy link
Member

brettfo commented May 23, 2019

Click Details to the right of the 'try-ci (Windows_NT)' status check then '0 errors / 0 warnings' under the success message, and view the 'Build / Test' step. Finally in the log there are only 4 instances of 'Successfully created package'.

@akshita31
Copy link
Contributor Author

https://github.com/tintoy/dotnet-template-templates. I referred this repo for adding the csproj that will include the package id and all the metadata and it seems to work well 🗡

@akshita31
Copy link
Contributor Author

akshita31 commented May 24, 2019

Also the above repo installs templates that looks like

image

This makes me feel if we should have something like
dotnet new try-template
dotnet new try-template -t web

@akshita31
Copy link
Contributor Author

@brettfo I am not able to understand how can I download the artifacts produced by this build. I went to the artifacts section but I see only logs there. Do we need to push it to myget to be able to see it ?

@akshita31 akshita31 merged commit b1b6dc7 into dotnet:master May 25, 2019
@akshita31 akshita31 deleted the tutorial branch May 25, 2019 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants