Сообщество Forex трейдеров

Пожалуйста, войдите или зарегистрируйтесь.

Расширенный поиск  


SMF - Just Installed!

Автор Тема: Midland : azure for devops - Эдуард Кабринский  (Прочитано 66 раз)


  • Newbie
  • *
  • Сообщений: 2
    • Просмотр профиля

Eduard Kabrinskiy - Azure nuget  - Эдуард Кабринский

<h1>Azure nuget</h1>
Azure nuget <a href="http://remmont.com">Live news</a> Azure nuget
<h1>Create a NuGet Package using Pipelines in Azure DevOps</h1>
<p>This demo will step through importing a repository from GitHub and creating a pipeline in Azure DevOps for the project. The pipeline will build, test & publish a NuGet package for usage by other projects.</p>
  <li><strong>Repos</strong> will be the source control for our code.</li>
  <li><strong>Pipelines</strong> will build and release our code.</li>
  <li><strong>Artifacts</strong> will enable us to share our package.</li>
<p>This demo assumes you have a DevOps organization. If you don’t, you can create one easily enough.</p>
<p>FixedWidth is the project we’ll be working with throughout this demo. FixedWidth is a .NET library I created a few years back for deserializing and serializing fixed width text from message queues.</p>
<h2>Create Project</h2>
<p>Go to your DevOps dashboard and create a new project named “FixedWidth”.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/1_createproject.png" /></p>
<p>You should now have an empty project.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/2_emptyproject.png" /></p>
<h2>Import Repo</h2>
<p>Go to Repos and navigate to Files. This is where our source will reside. Click <strong>Import</strong> to import a repository.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/3_importrepo-1.png" /></p>
<p>Provide https://github.com/mscribellito/FixedWidth.git for <strong>Clone URL</strong>.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/5_importfromgithub.png" /></p>
<p>You will see the files from GitHub once the import is complete.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/6_importsuccessful.png" /></p>
<h2>Publish Artifacts</h2>
<p>Go to Artifacts and create a new feed. This is where our NuGet package will be published. Click on <strong>Create Feed</strong>.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/17_createartifacts.png" /></p>
<p>Type “FixedWidth” and click <strong>Create</strong>.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/18_createfeed.png" /></p>
<h2>Configure Pipeline</h2>
<p>Go to Pipelines and create a new pipeline. This is where we will configure the build process.</p>
<h3>Create Base Pipeline</h3>
<p>Click on <strong>Create Pipeline</strong>.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/7_createpipeline.png" /></p>
<p>Connect: Choose Azure Repos Git.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/8_pipelineconnect.png" /></p>
<p>Select: Choose the FixedWidth repo.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/9_selectrepo.png" /></p>
<p>Configure: Choose .NET Desktop.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/10_configurepipeline.png" /></p>
<p>You will see the YAML pipeline definition generated.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/11_reviewpipeline.png" /></p>
<p><strong>Save and run</strong> the pipeline.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/12_savepipeline.png" /></p>
<p>You should now see the pipeline running. Click on <strong>Job</strong> to see the tasks.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/13_pipelinerunning.png" /></p>
<p>You can click on the individual tasks to see their log.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/14_pipelinecomplete.png" /></p>
<h3>View Unit Tests</h3>
<p>Go to Test Plans and navigate to Runs. This is where you can see the summary and results of the unit tests executed as part of the pipeline.</p>
<p>The summary tab will show you high level details of the runs.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/15_testrunsummary.png" /></p>
<p>Results tab will provide a more detailed view at the individual test level.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/16_testrunresults.png" /></p>
<h3>Add NuGet Tasks</h3>
<p>Go to Pipelines and edit the FixedWidth pipeline. This is where we will create and publish the package. Add NuGet pack task. Provide **/FixedWidth.csproj for <strong>Path to csproj</strong> and TargetFramework=net452 for <strong>Additional build properties</strong>.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/20_addpack.png" /></p>
<p>Add NuGet push task. Select <em>FixedWidth</em> for Target feed.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/21_addpush.png" /></p>
<p>The tail of <strong>azure-pipelines.yml</strong> should now resemble this. Save the pipeline.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/22_packpush.png" /></p>
<p>The pipeline will be automatically triggered. You should see the 2 additional NuGet tasks now.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/25_pipelinesuccess.png" /></p>
<h3>Viewing Artifacts</h3>
<p>Go to Artifacts. This is where we can see our package created by the pipeline.</p>
<p>Select FixedWidth and click <strong>Download</strong>.</p>
<p style="clear: both"> <img src="http://mscribellito.com/wp-content/uploads/2020/02/26_artifacts.png" /></p>
<p>You can open <strong>fixedwidth.2.0.0.nupkg</strong> with NuGet Package Explorer and verify the contents. It’s now ready to be used by other projects.</p>
<h2>Azure nuget</h2>

<h3>Azure nuget</h3>
Azure nuget <a href="http://remmont.com">Current news in english</a> Azure nuget
<h4>Azure nuget</h4>
How to import a repository from GitHub and create a pipeline in Azure DevOps. The pipeline will build, test &amp; publish a NuGet package.
<h5>Azure nuget</h5>
Azure nuget <a href="http://remmont.com">Azure nuget</a> Azure nuget
SOURCE: <h6>Azure nuget</h6> <a href="https://dev-ops.engineer/">Azure nuget</a> Azure nuget
#tags#[replace: -,-Azure nuget] Azure nuget#tags#

Eduard Kabrinskiy
today's news headlines