GithubHelp home page GithubHelp logo

NuGet integration - Docu about vssolutionbuildevent HOT 6 CLOSED

3f avatar 3f commented on June 15, 2024
NuGet integration - Docu

from vssolutionbuildevent.

Comments (6)

3F avatar 3F commented on June 15, 2024

Don't worry, this is a correct place to ask anything related to vsSolutionBuildEvent since Disqus is disabled now.

What I am looking for is "How to setup NuGet package so that I don't have to install the VisualStudio Extension".

Unfortunately part of the documentation contains outdated information but you need to look at this:

Please note the following changes starting with v1.14:

Therefore you can simply try like this:

gnt /p:ngpackages="vsSolutionBuildEvent"
( old packages still can be found here: https://www.nuget.org/packages/vsSBE.CI.MSBuild/ )

So, for example, Conari used this bootstrap to activate modern vsSolutionBuildEvent:

Here is result for CI (without VisualStudio Extension): https://ci.appveyor.com/project/3Fs/conari-wkygr/builds/30509246

from vssolutionbuildevent.

Tip77 avatar Tip77 commented on June 15, 2024

Thanks for the quick response. I manually installed the NuGet packages (via VisualStudio). How do I now setup the VisualStudio solution so that the script in .vssbe is executed?

from vssolutionbuildevent.

3F avatar 3F commented on June 15, 2024

I manually installed the NuGet packages (via VisualStudio).

Please be careful, this is not supported at least officially because of NuGet/Home#1521 (we do not follow any possible nuget solution for this, so I can't guarantee anything)

I recommend https://github.com/3F/GetNuTool

How do I now setup the VisualStudio solution so that the script in .vssbe is executed?

You don't need to do anything. Initially you need just to:

  1. Choose the way of receiving NuGet package that supports solution level. Any ways. I recommend GetNuTool because it can be even integrated into batch scripts and does not require any dependencies.
  2. Just activate plugin as you're prefer (doc)

That's all.

Modern versions provides cim.cmd wrapper (located in packages\vsSolutionBuildEvent\cim.cmd by default)

I hope you understand that for interaction with vsSolutionBuildEvent inside IDE you need of course VisualStudio plugin. For other cases you can simply activate it such from my example above:

packages\vsSolutionBuildEvent\cim.cmd "YourSolutionFile.sln"

from vssolutionbuildevent.

3F avatar 3F commented on June 15, 2024

(not tested) More like it could be probably also activated even without VisualStudio plugin through VisualStudio IDE project Properties - Build Events or manually in your project files (VisualStudio):

  <Target Name="ActivateVSSBE" BeforeTargets="Build"> 
    <!-- or better to try with BeforeBuild or _CheckForInvalidConfigurationAndPlatform or AssignProjectConfiguration or _PrepareForBuild etc -->
    <Exec Command="packages\vsSolutionBuildEvent\cim.cmd $(SolutionPath)" WorkingDirectory="$(SolutionDir)" />
  </Target>

That's obviously strange, but if you need, you can try this.

Let me know what problem are you trying to solve.

from vssolutionbuildevent.

Tip77 avatar Tip77 commented on June 15, 2024

My intention was to include versioning without forcing everyone to install the VisualStudio plug-in. That makes onboarding easier.

from vssolutionbuildevent.

3F avatar 3F commented on June 15, 2024

My intention was to include versioning without forcing everyone to install the VisualStudio plug-in.

You do not need forcing everyone to install the any plugin or some package.
Because all this will work without it. For any build. And I already gave you link to CI above to prove it.

from vssolutionbuildevent.

Related Issues (20)

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.