vswhere | Locate Visual Studio 2017 and newer installations | Code Editor library

 by   microsoft C++ Version: 3.1.1 License: MIT

kandi X-RAY | vswhere Summary

kandi X-RAY | vswhere Summary

vswhere is a C++ library typically used in Editor, Code Editor, Visual Studio Code, Ubuntu, Chef applications. vswhere has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

[chocolatey: all] over the years visual studio could be discovered using registry keys, but with recent changes to the deployment and extensibility models a new method is needed to discover possibly more than once installed instance. these changes facilitate a smaller, faster default install complimented by on-demand install of other workloads and components. vswhere is designed to be a redistributable, single-file executable that can be used in build or deployment scripts to find where visual studio - or other products in the visual studio family - is located. for example, if you know the relative path to msbuild,
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              vswhere has a medium active ecosystem.
              It has 786 star(s) with 92 fork(s). There are 38 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 184 have been closed. On average issues are closed in 42 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of vswhere is 3.1.1

            kandi-Quality Quality

              vswhere has 0 bugs and 0 code smells.

            kandi-Security Security

              vswhere has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vswhere code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vswhere is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              vswhere releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vswhere
            Get all kandi verified functions for this library.

            vswhere Key Features

            No Key Features are available at this moment for vswhere.

            vswhere Examples and Code Snippets

            No Code Snippets are available at this moment for vswhere.

            Community Discussions

            QUESTION

            Azure Devops build pipelines : build configuration in Yaml file not used
            Asked 2022-Mar-21 at 07:34

            I have a build pipeline yaml file that looks like the following:

            ...

            ANSWER

            Answered 2022-Mar-18 at 06:35

            Azure Devops build pipelines : build configuration in Yaml file not used

            First, try to check if you missing build configuration in the Configuration Properties with Visual Studio or the checkbox of build is not checked.

            Right clicking the solution, selecting "Properties" and then looking at the "Configuration Properties" property sheet:

            Second, try to build and deploy it on your local to check if you have this issue, if not, please check the MSBuild version (Visual Studio Version) and the .net framework version with the version on the Azure devops.

            Source https://stackoverflow.com/questions/71512577

            QUESTION

            MSB3245: Could not resolve this reference. Could not locate the assembly
            Asked 2022-Jan-26 at 04:13

            I am getting the following error message, when i build the code using the Azure DevOps. The same code, when I build locally, I am able to build it successfully.

            Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Azure.Core, Version=1.20.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

            I am not able to figure out what am i missing here.

            Following is the YAML FIle:

            ...

            ANSWER

            Answered 2022-Jan-25 at 09:01

            You should not use paths that reference drives in azure pipelines tasks, as you don't have access to directories outside the scope of the pipeline agent, so in this case your nuget restore task does not work. Use predefined variables (https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml) when referencing, like:

            Source https://stackoverflow.com/questions/70844151

            QUESTION

            Retrieving the MSBuild content into an artifact? Directory 'D:\a\1\a' is empty. Nothing will be added to build artifact 'drop'
            Asked 2021-Dec-30 at 08:47

            I try to understand how this MSBuild command is working with Azure DevOps Pipeline in Yaml. I get this error:

            Here is my MSBuild instruction in my Azure Pipeline project:

            ...

            ANSWER

            Answered 2021-Dec-30 at 08:47

            Retrieving the MSBuild content into an artifact? Directory 'D:\a\1\a' is empty. Nothing will be added to build artifact 'drop'

            That because the source of the task PublishBuildArtifacts is $(Build.ArtifactStagingDirectory).

            But the MSBuild task not generate the file in the $(Build.ArtifactStagingDirectory) folder, so we need to copy the files from the output folder of the task MSBuild to the folder $(Build.ArtifactStagingDirectory) by the copy task after MSBuild task:

            Source https://stackoverflow.com/questions/70528838

            QUESTION

            Building boost for different versions of Visual Studio
            Asked 2021-Dec-20 at 15:36

            I have Visual Studio 2019 and 2022 installed. I want to build boost libraries for 2019 vc142. How do I build vc142 libs instead of vc143?

            My current method for building is as follows. I'm using Developer Command Prompt for 2019, and running the following,

            1. bootstrapper.bat
            2. b2.exe install --prefix=MY_PATH

            Unfortunately the output lib files are all vc143. I've also tried commenting out IF "%1"=="vc143" SET TOOLSET=msvc : 14.3 in bootstrap.bat with no success. One of the first outputs when running bootstrap.bat is Found with vswhere C:\Program Files\Microsoft Visual Studio\2022\Community. I suspect this could be the problem

            ...

            ANSWER

            Answered 2021-Dec-20 at 15:36

            adding toolset=msvc-14.2 to the b2.exe builds the correct version.

            b2.exe install --prefix=MY_PATH toolset=msvc-14.2

            Source https://stackoverflow.com/questions/70424014

            QUESTION

            How to add pending changes or checkout files in TFVC programmatically (netstandard2.0)
            Asked 2021-Sep-29 at 12:49

            The package we used before (Microsoft.TeamFoundationServer.ExtendedClient), doesn't support netstandard2.0 and it seems that the new REST APIs doesn't support the tasks we want to accomplish either.

            So what's the recommended way to add new files as pending changes or checkout existing files in tfvc when targeting netstandard2.0?

            TF.exe should be capable of doing the aforementioned tasks, but to get the path to it we would somehow need vsWhere.exe and so that whole approach seems a little bit cumbersome.

            ...

            ANSWER

            Answered 2021-Sep-29 at 12:49

            There is no, and won't be, a .NET Core compatible version of the TFVC client object model. The API used to interact with TFVC is a SOAP based API and it has never been ported to REST.

            You can use vswhere to find tf.exe or build a custom .NET 4.x executable using the Client Object Model and call from your .NET Core app.

            You're allowed to redistribute a copy of vswhere with your application. You can grab the latest version from here:

            Source https://stackoverflow.com/questions/69373008

            QUESTION

            How do I get Visual Studio Developer Powershell working in Visual Studio Code's integrated terminal?
            Asked 2021-Aug-04 at 16:10

            I am trying to create a Visual Studio Developer Powershell profile for Visual Studio Code. Here is what I tried:

            ...

            ANSWER

            Answered 2021-Aug-04 at 16:10

            tl;dr

            The following - which can be used as a property inside the "terminal.integrated.profiles.windows" property of your settings.json file in order to define a terminal profile named Developer PowerShell - fixes the problems with your original attempt.

            Source https://stackoverflow.com/questions/68635853

            QUESTION

            How to activate anaconda environments properly after installing visual studio 2019
            Asked 2021-May-20 at 12:46

            After installing Visual Studio 2019, I have problems with my anaconda. When I create a new environemnt in my anaconda, after hours I face the problem when I try to activate the environment and after that when I open any jupyter notebook, the kernel will not work. I copied the messages when I activate environment. How can I recover my anaconda environments? I have uninstalled the Visual Studio and deleted all its files but the problem is still here. I appreciate any help to solve this issue. I am using Windows 10 and Anaconda 3.

            ...

            ANSWER

            Answered 2021-May-20 at 12:46

            It was solved by removeing the vs2017_compiler_vars file that was in Anaconda3\envs\enviro\etc\conda\activate.d.

            Source https://stackoverflow.com/questions/67619394

            QUESTION

            RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. GPU not detected by pytorch
            Asked 2021-Mar-21 at 16:24

            Having trouble with CUDA + Pytorch this is the error. I reinstalled CUDA and cudnn multiple times.

            Conda env is detecting GPU but its giving errors with pytorch and certain cuda libraries. I tried with Cuda 10.1 and 10.0, and cudnn version 8 and 7.6.5, Added cuda to path and everything.

            However anaconda is showing cuda tool kit 9.0 is installed, whilst I clearly installed 10.0, so I am not entirely sure what's the deal with that.

            ...

            ANSWER

            Answered 2021-Mar-20 at 10:44

            From the list of libraries, it looks like you've installed CPU only version of the Pytorch.

            Source https://stackoverflow.com/questions/66711799

            QUESTION

            Redirect Process Output to JSON
            Asked 2020-Dec-19 at 10:28

            I'm attempting to capture the result from a vswhere command in JSON. When I run the command vswhere -legacy -format json directly in the command line I get the following formatted JSON:

            ...

            ANSWER

            Answered 2020-Dec-19 at 03:37

            If you simply run the following program, without writing to standard input and using the Arguments, you can get the output you want.

            Source https://stackoverflow.com/questions/65366374

            QUESTION

            Jenkins Plugin MSTestRunner equivalent in GitHub Workflow Actions
            Asked 2020-Nov-16 at 22:11

            Is there an MSTest.exe YAML equivalent in Github Actions Workflow? If there is can a get sample yaml that includes how a /testcontainer, /category, and /resultsfile would look like?

            I was able to find MSBuild. Not sure if it's possible to use MsBuild to run MSTest's if it is then an example using the above would solve my question as well.

            Current Workflow yaml

            ...

            ANSWER

            Answered 2020-Nov-03 at 12:11

            Since you have msbuild at hand you should also be able to run mstest:

            Source https://stackoverflow.com/questions/64655888

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install vswhere

            You can download it from GitHub.

            Support

            To file issues or suggestions, please use the [Issues](https://github.com/Microsoft/vswhere/issues) page for this project on GitHub.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/microsoft/vswhere.git

          • CLI

            gh repo clone microsoft/vswhere

          • sshUrl

            git@github.com:microsoft/vswhere.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link