Comments (6)
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:
- https://vssbe.r-eg.net/doc/CI/CI.MSBuild/
- vsSolutionBuildEvent welcomes any updates that will be considered through GitHub PR.
Please note the following changes starting with v1.14:
- CHANGED: NuGet package
vsSBE.CI.MSBuild
is obsolete. Please use new:
https://www.nuget.org/packages/vsSolutionBuildEvent
Also new 'tools' folder instead of 'bin'.
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.
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.
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:
- 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.
- 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.
(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.
My intention was to include versioning without forcing everyone to install the VisualStudio plug-in. That makes onboarding easier.
from vssolutionbuildevent.
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)
- Interrupt a build with pre-build event script HOT 3
- 7z & amd64\msbuild.exe: Can not load 7-zip library or internal COM error HOT 1
- Update support of VS2017 HOT 4
- ProjectGuid & SDK-based projects HOT 1
- Isolated environment. Possible incorrect projects for MSBuild Properties ~ $(TargetFrameworkVersion:Metadata) HOT 2
- Pre-Build error: An equivalent project (a project with the same global properties and tools version) is already present in the project collection HOT 6
- 'Object reference not set to an instance of an object.' HOT 5
- Visual Studio 2019 supprt HOT 6
- .vssbe configuration via HJSON
- Our script engines into the new independent projects
- installer fails if Atmel studio is installed on computer HOT 4
- IsolatedEnv and empty SolutionConfigurationPlatforms: "escapedValue" cannot be null
- 7z: relative paths like ..\Dir for input files lead to wrong filename in zip file HOT 2
- MSBuild Properties not changing according to solution configuration HOT 1
- Can't use MSBuild in Targets Mode HOT 2
- Visual Studion 2022 support HOT 7
- Visual Studio Setup Project error HOT 2
- Possible to set settings default to all project? HOT 4
- Extension "Progress Telerik UI for WPF Extension" causes MSBuild properties to be *undefined* HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vssolutionbuildevent.