Coder Social home page Coder Social logo

tragiccode / nservicebus.newrelic.analyzer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 106 KB

A Roslyn Diagnostic Analyzer and corresponding Code Fix identify and automatically add NewRelic.Agent.Api [Transaction] attributes to all NServiceBus v6+ related message handlers.

License: Apache License 2.0

C# 56.46% PowerShell 43.54%

nservicebus.newrelic.analyzer's People

Contributors

dependabot[bot] avatar gpersell avatar tragiccode avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

gpersell

nservicebus.newrelic.analyzer's Issues

Document that MSBuild v16.0 is required for the roslyn analzyer

if the build agents do not have MSBuild v16.0 installed, then the build will throw the following warning.

CSC : warning CS8032: An instance of analyzer NServiceBus.NewRelic.Analyzer.NServiceBusNewRelicAnalyzer cannot be created from C:\BuildAgent\work\9b7caaa76a57f65c\packages\NServiceBus.NewRelic.Analyzer.1.0.1\analyzers\dotnet\cs\NServiceBus.NewRelic.Analyzer.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [C:\BuildAgent\work\9b7caaa76a57f65c\TestAnalysisBuild\TestAnalysisBuild.csproj]

I was able to get the build to work on a fresh new teamcity build agent by

  1. Installing visualstudio2019buildtools
RUN ["choco", "install", "visualstudio2019buildtools", "-y", "--package-parameters", "--add Microsoft.VisualStudio.Workload.MSBuildTools"] 
RUN ["choco", "install", "visualstudio2019buildtools", "-y", "--package-parameters", "--add Microsoft.VisualStudio.Component.Roslyn.Compiler"] 

Either of the above commands worked.

  1. Get the build to use msbuild v16.0

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.