I am trying to deploy a project with Visual Studio 2019 click once. In the directory where the program run when I execute setup.exe I want to add some folder with dependent dlls. Is there any automated way to add folders whithin the path where setup.exe runs?
Related
I was getting an error to remove the "mark of the web" from a .resx file and so I opened PowerShell as administrator, navigated to the folder in question, and issued an Unblock-File -Path myfile.resx command. I've also done it using the full path.
Now I am trying to bring the form into the project using Add Existing, but the .resx file is not being imported. However, for another form, when I choose Add Existing and click on the form's .cs file, Visual Studio (2019) brings all three files into the project in one fell swoop, its.cs, itsdesigner.cs and its.resx; but on the other form, the .resx file is not imported. In fact, Visual Studio does not even display myfile.resx in the list of files when I choose Add Existing.
What has Unblock-File done that would make the file invisible within Visual Studio?
I have several folders in a workspace, each folder with its launch.json file and its own large configuration. I am trying to run all launch.json files one after another in visual studio code.
Any help?
I am trying to build my solution using MSBuild in the Command-Line instead of Visual Studio.
So, I have a Solution Configuration Build called "Installer - QA" which will generate the .exe file. However this solution configuration does not have a project configuration with the same name, so it is building all the projects.
msbuild solutionName.sln /p:Configuration="Installer - QA"
From what I understood this Configuration property sets the Project Configuration instead of Solution Configuration, then my project filter does not work.
It's funny because in Visual Studio works, is there a way to know how Visual Studio does?
The solution I've found so far it's to build using "devenv.exe" as the following:
devenv solutionName.sln /rebuild "Installer - QA"
You will need to add the path to devenv.exe in the PATH environmental variable (e.g. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE").
The only drawback I see in this solution is the need to install Visual Studio IDE at the remote server.
This post helped me to figure out this answer.
I want to Generate Some files during TFS-Build for e.g. Generate some text files using exe which is executed through powershell.
I added the steps(Powershell) in TFS-build Definition , when my process comes to this step, log generates and shows that file is generated successfully, but I don't see any generated file under Artifacts > drop folder.
NOTE: I am using same directory for generating text files where my exe is available.
How to achieve this in TFS Build , I am using Visual Studio Team Services.
Based on the log files, you just published the files that in the D:\a\1\a folder to the artifacts (e.g. CIRIg.Mvc.zip, CIRIg.Mvc.SourceManifest.xml, CIRIg.Mvc.deploy.cmd, CIRIg.Mvc.SetParameters.xml).
However, the generated txt file (636247216960041685.txt) is in the D:\a\1\s...) and isn’t copied to the D:\a\1\a folder. So, you don’t see it in Artifacts > drop folder.
To deal with that issue, you can generate the file to D:\a\1\a ($(build.artifactstagingdirectory)) folder or copy that file to that folder by using Copy Files step/task.
I have written a PowerShell script that takes a single file as an argument and runs a compare to another file in the background. I'd like to be able to right click a file in Team Foundation Server's Solution Explorer, and choose that file as the argument for my script. I've done the exact same thing for files in the Windows Explorer, but I can't quite figure out how to do it for TFS.
I thought the registry items to be edited would be located at HKCU\Software\Microsoft\VisualStudio\11.0\TeamFoundation\SourceControl\, but I added an item the same way I added it to the Windows Explorer shell, to no avail. Can anyone point me in the right direction?
I don't think adding a key to Registry will be enough, you will need to create a Visual Studio Extension for that.
Developing Visual Studio Extensions
Extend Visual Studio
Creating Extensions By Using the VSIX Project Template
There is this SO thread that shows how to do this strictly in Visual Studio using Options -> External Tools and Options->Customizing the context menu.
Add an Item to the visual studio folder right-click menu within AddIn