Coder Social home page Coder Social logo

particulartemplates's Introduction

particulartemplates's People

Contributors

adamralph avatar andreasohlund avatar awright18 avatar bording avatar danielmarbach avatar davidboike avatar dbelcham avatar dependabot-preview[bot] avatar dependabot[bot] avatar heskandari avatar internalautomation[bot] avatar janovesk avatar kbaley avatar kentdr avatar mikeminutillo avatar particularbot avatar ramonsmits avatar seanfarmar avatar seanfeldman avatar simoncropp avatar soujay avatar szymonpobiega avatar williambza avatar wojcikmike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

particulartemplates's Issues

Use Microsoft-provided template package validation when available

Describe the suggested improvement

The documentation for Authoring Tools mentions a package Microsoft.TemplateEngine.Authoring.Tasks that currently can only be used for localization of strings in a template, but in the future should include a Validate task for validating template packages.

See Authoring tools: templates & template packages validation.

We already build the templates and run approval tests on the template output, but once these tools are available it may provide ways to validate that the ide.host.json and dotnetcli.host.json files that are currently hard to test.

Additional Context

No response

Update the templates to latest .NET and latest NSB

Describe the suggested improvement

At the moment, the templates target .NET 4.7.2 and RC's of NServiceBus. So we need two things:

  • Update the templates to the latest of Core and .NET
  • Update our processes to make sure the templates don't fall through the cracks when we update NServiceBus and .NET in the future

Call to Host.Stop could lead to a `NullReferenceException`

https://github.com/Particular/dotnetTemplates/blob/e16ef9ced20b895a5b2a357801a33d57b0b68b93/src/Templates/NServiceBusWindowsService/Host.cs#L64

The above referenced line could lead to a null reference exception inside the .NET code that is taking care of the await. The used ?. operator could return null which will cause the issue.

My proposed solution would be to replace this line with
await (this.endpoint?.Stop() ?? Task.CompletedTask);
I'm assuming that Task.CompletedTask is available in the lowest supported version for the dotnet new templates.

I'm happy to provide the pull request to solve this, if the proposed solution is in your interest

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.