Powershell project in visual studio - powershell

How do I open a powershell project in visual studio. The project was created in GitLab originally and then put in VSTS, am able to clone it to my local machine but do not see an option to open the project. VS2015 is looking for a soln file or similar files. Am guessing because the project was not initially built in VS2015?

Related

Azure Devops Pipeline - Use Microsoft Visual Studio Installer Projects

I'm using Azure devops with the VM = vmImage: 'windows-2019' and I would like to know how to generate an MSI file from my vdproj.
In my local visual studio I have the extension "Microsoft Visual Studio Installer Projects" installed and it works fine. But in the VS2019 of the hosted agent from Azure pipeline I dont have, and I can't generate the msi as an artifact.
I've tried to run by devenv.exe cmd but as I dont have the extension it didnt work.
Is there any way to generate msi files from azure pipeline? I've tried different ways, some custom tasks but it didnt work.
Or can I change my setups to another type of project that the MsBuild reconigze?
My error:
The project file "xxx.vdproj" is not supported by MSBuild and cannot be built.
Cheers.
Component.VSInstallerProjects v: 0.9.9 is now installed on the Microsoft-hosted agent 2019.
The project file "xxx.vdproj" is not supported by MSBuild and cannot
be built.
For this issue ,that because Visual Studio Installer Projects extension is not installed on the Hosted agent. You can view this link for a list of software installed on Microsoft-hosted agent2019.
As a work around , you have to configure your own build agent to run the build.
Make sure the VS Installer Projects extension is installed on your own build agent and then you can build the setup project either use command line task with "devenv" or use the "Build VS Installer" task.
To Build .msi file by VS installer project, you can use Build VS Installer task in marketplace.
You can specify to build .sln or .vdproj to generate .msi file(s) in Task-mode option.
Here are the similar cases:1,2 , you can refer to .

Migrating from Netbeans to VSCode

I'm migrating from Netbeans to VSCode, and after some time of use, I don't understand how can I see all my projects into the navigator so I can work in some project I need and sometimes copy files between projects too. Actually, I've just can open some folder or I can just open the root folder of all my projects, okay, but with it, I can't sync each project with some FTP server using the third-party ftp-simple plugin for FTP connections.
This is vscode Version: 1.37.1 using macos.

If I check in eclipse project into tfs, will I be able to use it in VS environment?

My ultimate goal is to completely migrate eclipse (mars) project into Visual Studio environment.
During my research, I have tried several options:
1) Create project from existing code. Doesn't apply to my case, since my project is a combination of .java and .jsp files, wizard only offers C++, C#, Visual Basic options.
2) TFS plugin for eclipse.
3) Checking in the project from eclipse into tfs.
Within the third option, I am planning to create a new team project, and check in the project from eclipse based on that article manual.
My question is will I be able to open and operate project I checked in inside VS environment?
I am also opened to any other suggestion, which might help me resolve that problem.
If you have an Eclipse project and you want to move to something like Visual Studio there are three options:
Java Language Support plugin
Visual Studio Code
Java Language Service for Android and Eclipse Android Project Import
Except for the latest, I expect you have to review the build script to make it work in the new environment.
TFS/VSTS is language agnostic and has no interested in IDE and has no "project conversion" support.
No, sharing(check in) the project in Team Foundation server just means to source control the code. You can't directly using them in VS environment.
However you can download the project and work on it locally(local eclipse). Then check in the changes to TFS server. More details please refer: Importing Projects from Team Foundation Server
Here is a tutorial includes step-by-step instructions to help you get
started with the Team Foundation Server plug-in for Eclipse.
Team Foundation Server Plug-in for Eclipse - Beginner's Guide

Visual Studio 2012 Add-In - How to share/publish/deploy it?

I have been working on a Visual Studio solution template to be used internally and have been developing this in a Visual Studio 2012 Addin.
The addin is added to the tools menu of Visual Studio and all works fine.
The only question now is, how can I share this tool between my team?
I have added a VSIX project, which in turn references the Solution Template project (added as an asset) but will this alone do it?
I can't see how installing the VSIX I created is manually going to add my add-in to the Visual Studio Tools window.
Can anyone offer any advice as to how I can do this or is there some other way to deploy/publish a Visual Studio addin?
I have found a tutorial which is similar, but I just want to use the VSIX to install my add-in to Visual Studio tools menu, rather than add it as a project template. I have looked around and there doesn't seem to be much information on how to deploy your addin.
It seems addins are soon to be deprecated with the next release of Visual Studio, although I have found this article on how to convert an addin to a VSPackage.
And with a VSPackage I will be able to deploy using VSIX.
There are also some tutorials on VSPackages here.

Using Enterprise LIbrary 6 Application Blocks

Then new Enterprise Library 6 is out and can be downloaded here. I have downloaded and extracted EnterpriseLibrary6-binaries.exe to a folder on my C: drive. The readme says this:
MICROSOFT ENTERPRISE LIBRARY 6
Summary: This package contains Enterprise Library configuration console, MSMQ distributor service, merge configuration tool and a script to download binaries for all application blocks from NuGet.
In order to get all the binaries, run the install-packages.ps1 script.
Note: For the Semantic Logging Application Block Out-of-Process service, a separate package is available for download.
I then run Powershell and run the script. I now look in the folder I extracted the .exe to and all of the binaries are there. Now, here are the instructions from the Enterprise Library 6 .chm.
To install the integrated Visual Studio configuration editor
1. On the Visual Studio Tools menu, choose Extensions and Updates.
2. In the Extensions and Updates dialog, search online for EnterpriseLibrary.config.
3. Click the Download button to download and install the Enterprise Library configuration editor.
4. Restart Visual Studio to complete the installation.
To launch and use the configuration editor from Visual Studio
1. Open a solution in Visual Studio.
2. If the solution does not contain a configuration file, add one using the Visual Studio Add menu.
3. In Solution Explorer, right-click the configuration file and then click Edit Enterprise Library V6 Configuration. This launches the integrated configuration editor or the appropriate standalone version of the configuration tool.
Step #3 is where I am stuck. I have a WCF service project with a web.config in it. I right click the web.config and I don't see a "Edit Enterprise Library V6 Configuration" context menu option.
I DO see an "Edit Server Configuration File v6". However, when I click this I get the following error.
All I'm trying to do is use the Exception Handling Application Block in my WCF service project. I've looked around the web and can't find any easy step-by-step tutorial to guide me either. Any help is greatly appreciated.
You need to set the solution property for "Enterprise Library v6 binaries path" to set to
the folder that you extracted "EnterpriseLibrary6-binaries.exe".
You can do that by clicking the solution and then pressing F4 to see the properties window, but you need to make sure that your "Enterprise Library Config tool" is v6.
http://www.microsoft.com/en-us/download/details.aspx?id=38789
The Visual Studio Gallery provides Enterprise Library 5 Config tool which is obviously the wrong Version.
I had to use NuGet to install the application block I wanted to use in the project. For me, Tools >> Library Package Manager >> Manage NuGet Packages for solution and add the appropriate EntLib 6 Exception Handling Application Block WCF Provider.
Just download Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6.vsix
from the below link and while installing provide VS2012 or Vs2013.
http://www.microsoft.com/en-us/download/details.aspx?id=38789
After installation restart Visual Studio.
You will Enterprise Library 6.0 configuration.
By default Extension and Updates in VS give 5.0 configuration we need 6.0 to work.
This is what worked for me:
Download Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6.vsix, from here and during installation, provide VS2012 or VS2013.
Then restart your VS2012/2013 and you should be good to go!