wintellect / wintellectpowershell Goto Github PK
View Code? Open in Web Editor NEWPowerShell scripts for better debugging and life
Home Page: http://www.wintellect.com
License: Other
PowerShell scripts for better debugging and life
Home Page: http://www.wintellect.com
License: Other
I get the error below when I run Import-VisualStudioEnvironment:
'"C:\Program Files (x86)\Microsoft Visual Studio 14.0\\vc\vcvarsall.bat"' is not recognized as an internal or external command, operable program or batch file.
ERROR: Error executing CMD.EXE: 1
Checking "C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc", the vcvarsall.bat doesn't exist. I think I did a fairly minimal install on this machine (C# + Web tools). There is a Developer Command Prompt for VS2015 in my Start Menu, and checking the properties for that it launches "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
On both a work and home machine, when trying to install the module it fails, and given the alias it is failing on, I'm not sure if I want to force it:
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\Brendan Grant> Install-Module -Name WintellectPowerShell -Scope CurrentUser
NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet
provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or 'C:\Users\Brendan
Grant\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running
'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import
the NuGet provider now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a
PackageManagement\Install-Package : The following commands are already available on this system:'set'. This module
'WintellectPowerShell' may override the existing commands. If you still want to install this module
'WintellectPowerShell', use -AllowClobber parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
Exception
+ FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Pack
ageManagement.Cmdlets.InstallPackage
Both machines are running Windows 10 Professional, System.Environment]::OSVersion.Version.ToString() is: 10.0.15063.0 and $PSVersionTable reports:
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.632
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1```
The other PC notes that PSVersion BuildVersion are 5.1.15063.674
Time permitting, I'll try from source a bit later.
Could you support VS2019 in Import-VisualStudioEnvironment?
I can't touch the already-signed code.
PS tatsu@TATSU-NB-3RD:~$ Import-VisualStudioEnvironment
The system cannot find the path specified.
ERROR: Error executing CMD.EXE: 1
PS tatsu@TATSU-NB-3RD:~$ Import-VisualStudioEnvironment 2019
Import-VisualStudioEnvironment : Cannot validate argument on parameter 'VSVersion'. The argume
nt "2019" does not belong to the set "Latest,2013,2015,2017" specified by the ValidateSet attr
ibute. Supply an argument that is in the set and then try the command again.
At line:1 char:32
+ Import-VisualStudioEnvironment 2019
+ ~~~~
+ CategoryInfo : InvalidData: (:) [Import-VisualStudioEnvironment], ParameterBin
dingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Import-VisualStudioEnvironment
PS tatsu@TATSU-NB-3RD:~$ Import-VisualStudioEnvironment Latest
The system cannot find the path specified.
ERROR: Error executing CMD.EXE: 1
I have a specific use-case with SonarQube.io, analyzing .Net Core projects, which no longer include ProjectGuid, and SonarQube still requires it. I want to keep my Build Pipelines simple, your Set-Properties for .csproj seems like the fit. But, I haven't found a clean way to deploy the modules via Azure DevOps. I expect first class support in the future, being Azure RM is moving to Azure PS.
Any help would be great? Thanks!
Note to SonarQube. I'm jumping through hoops. .Net Core has been out a few years now.
I tried to use Set-ProjectProperties, but my Projects do not have Debug / Release configuration. I have my own custom configurations and maybe this is hardcoded in the module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.