Giter Club home page Giter Club logo

generator-azuresfcsharp's Introduction

generator-azuresfcsharp

Yeoman generator for Azure Service Fabric CSharp projects

Installation

First, install Yeoman and generator-azuresfcharp using npm (we assume you have pre-installed npm and node.js).

npm install -g yo
npm install -g generator-azuresfcsharp

The commands might ask for root access. Please run them with sudo, if needed.

Then generate your new project:

yo azuresfcsharp

You can have a look at our documentation to understand how can you build and deploy the generated Service Fabric C# application

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT Copyright (c) Microsoft Corporation. All rights reserved.

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.

Steps to contribute

Once you have figured out all the legalities above, you can follow the steps below -

  • Create a fork of this repository
  • Git clone the forked repository to your development box
  • Make the changes
  • You can update your local Yeo using npm link (or sudo npm link as required) at the project root-level
  • Create a new project with yo azuresfcsharp (ensure it picks Yeo node-module bits from your local changes)
  • Validate that changes are working as expected and not breaking anything regressively - following the steps mentioned in the documentation by creating, building and deploying the generated project on a Service Fabric cluster
  • Raise a pull request and share with us

Debugging generator using vscode

  • Open the repository's root folder in VScode.
  • Run the command which yo and update the program's value in launch.json if it does not match with yours.
  • Press F5 to start debugging.

generator-azuresfcsharp's People

Contributors

a11smiles avatar deepakjangid-msft avatar drnic avatar hrushib avatar michaelfery avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar rapatchi avatar saichand345 avatar samedder avatar suhuruli avatar vshan avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-azuresfcsharp's Issues

dotnet-include.sh assumes linux

Running ./build.sh on OSX looks ugly initially before continuing to work fine:

$ ./build.sh

./dotnet-include.sh: line 2: /etc/os-release: No such file or directory
./dotnet-include.sh: line 4: [: =: unary operator expected

The generated dotnet-include.sh scripts are testing for RHEL, but they still assume Linux, with the first line: . /etc/os-release. Perhaps look for /etc/os-release and skip/noop if missing (which means its not RHEL)

Entry point for Azure Service Fabric

Hi,

I faced up with following issue, that may be related to this one: microsoft/service-fabric-aspnetcore#22 . The problem is that entry point, represented as dotnet service.dll (see the lines below) works only in Service Fabric hosted in the Docker container, but doesn't work in Azure Service Fabric cluster.

https://github.com/Microsoft/generator-azuresfcsharp/blob/dcb2d56752e7b01dfa82b2b2fd83842f58506d55/generators/CoreCLRStatelessService/templates/service/app/appPackage/servicePackage/ServiceManifest.xml#L15-L20

And to make it work on Azure Service Fabric I should change manifest as follow:

<EntryPoint>
      <ExeHost>
        <Program>Service.exe</Program>
        <WorkingFolder>CodePackage</WorkingFolder>
      </ExeHost>
    </EntryPoint>

So my question is if there's a posibility to have universal ServiceManifest for both environments?

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.