adityapatwardhan / NuGet.Jobs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NuGet.Jobs

This repo contains nuget.org's implementation of the NuGet V3 API as well as many other back-end jobs for the operation of nuget.org.

  1. Each job would be an exe with 2 main classes Program and Job

  2. Program.Main should simply do the following and nothing more

    var job = new Job();
    JobRunner.Run(job, args).Wait();
    
  3. Job class must inherit NuGet.Jobs.Common.JobBase and implement abstract methods Init and Run

  4. An IDictionary<string, string> is passed to Init for the job to initialize the member variables

  5. Edit the project file on a new job and always set <DefineConstants>TRACE</DefineConstants> irrespective of configuration

  6. Also, add a post-build event command line:

    move /y App.config <jobName\>.exe.config
    
  7. Also, add settings.job file to mark the job as singleton, if the job will be run as a webjob, and it be a continuously running singleton

Feedback

If you're having trouble with the NuGet.org Website, file a bug on the NuGet Gallery Issue Tracker.

If you're having trouble with the NuGet client tools (the Visual Studio extension, NuGet.exe command line tool, etc.), file a bug on NuGet Home.

Check out the contributing page to see the best places to log issues and start discussions. The NuGet Home repo provides an overview of the different NuGet projects available.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

About

License:Apache License 2.0


Languages

Language:C# 97.6%Language:TSQL 1.0%Language:PowerShell 0.8%Language:HTML 0.3%Language:XSLT 0.2%Language:CSS 0.1%Language:Batchfile 0.0%Language:ASP.NET 0.0%