How to add app.config transform to a 4.8 Azure WebJob (.NET Framework) in VS 2022? - app-config

After creating a project using Azure WebJob (.NET Framework) template with 4.8.1 in VS2022, app.config transformations do not appear to be supported. The right-click to add the transform is not available. Also, hacking the csproj file to arrange transforms that are "DependentUpon" the app.config results in the correct appearance in the Solution Explorer, but build, debugging and publish do not result in any transformation taking place.
Microsoft Visual Studio Professional 2022 (64-bit) Version 17.4.4
Has anyone achieved this?

I have created Azure WebJob with .Net Framework 4.8.
Even I am unable to find the option to Add the Transform.
We have SlowCheetah Package to Transform xml and json files at build time based on the Configuration.
Close the Visual Studio before downloading the Package, to complete the download fast.
Download the SlowCheetah Package, restart the Visual Studio.
SlowCheetah for VS 2017 - 2019.
SlowCheetah for VS 2022.
I have Downloaded Package for VS 2022.
Now I am able to see the option to Add Transform.
Click on Yes to continue.
app.Debug.config and app.Release.config got added below the app.config file.

Related

How to build old Silverlight project in Azure DevOps?

We have an old Silverlight project that we have to maintain while a modern replacement is developed.
For build and publication, we use Azure DevOps.
The problem arose after Windows 2019 and 2022 remained in the available images of Azure DevOps. With versions of VS with which the project with Silverlight stopped building.
Visual Studio Enterprise 2019 16.11.32901.82
Visual Studio Enterprise 2022 17.3.32901.215
2022-09-10T14:26:05.9397408Z ##[error]abcWebSilverlight\abcWebSilverlight.csproj(1056,11): Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Also, tried to find "Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath32) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.
Now, to solve the problem with the building, I see two possible ways:
Somehow install the necessary VS version.
I've googled all over the internet but can't find how to do it.
In the Build task, I set the desired version and the build jumps to the available version of the studio because others are not installed in the system.
Dirty hack. Try to somehow install the extension https://marketplace.visualstudio.com/items?itemName=RamiAbughazaleh.SilverlightProjectSystem&ssr=false#qna in the hope that the project will work.
But then again, in Azure DevOps, I don't see a tool that allows me to do this.
I would appreciate any advice on a possible solution to my problem.
Thank you.
You cannot use Visual Studio 2017 or later to build old Silverlight (v4 or v5) projects - you have to continue using Visual Studio 2015.
Source: https://learn.microsoft.com/en-us/visualstudio/releases/2017/vs2017-compatibility-vs
Silverlight projects are not supported in this version of Visual Studio. To maintain Silverlight applications, continue to use Visual Studio 2015.
In Azure DevOps, the only way to get this to work is to setup your own instance of Windows with VS2015 (or the VS2015 build tools) installed and then also install the Azure DevOps self-hosted pipeline agent (for building: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops&tabs=browser#install)
The instance can be either on-premises or cloud-hosted (either Azure or even an AWS VM instance) and will work so long as it can access the internet to communicate with Azure DevOps (configuration is a bit different if you're using DevOps Server).

How do I open a DTSX file in Visual Studio 2019?

How do I open a DTSX file for editing using Visual Studio 2019?
I have generated a DTSX file by using the Import Data wizard found in SQL Server Management Studio, using the same process outlined in this question. The answer to that question explains how to edit a .dtsx file, but it does not appear to be correct anymore. I am using Visual Studio 2019. The answer says I need to use this link to download SQL Server Data Tools for Visual Studio:
Download and install SQL Server Data Tools (SSDT) for Visual Studio
But at that link, it says:
Changes in SSDT for Visual Studio 2019
With Visual Studio 2019, the required functionality to enable Analysis Services,
Integration Services, and Reporting Services projects has moved into the
respective Visual Studio extensions. The core SSDT functionality to
create Database Projects has remained integral to Visual Studio (you
need to select the Data storage, and processing workload during
install). There's no more standalone SSDT installation required.
If you already have a license to Visual Studio 2019:
For SQL Database Projects, install the Data storage and Processing
workload for Visual Studio
For Analysis Services, Integration Services
or Reporting Services projects, install the appropriate extension(s)
from the marketplace
I believe I need Integration Services, but it doesn't have a link to the appropriate extension in the marketplace. Through various googling paths1, everything keeps pointing back to the SQL Server Integration Services Projects extension. I have installed this extension2, but I am still unable to open DSTX files.
Here's how I'm attempting to do it: In Visual Studio, am going to File|Open Project. Then I browse to the folder with the .dtsx file in it, change the filter to *.* (because .dtsx isn't in the list of supported project extensions), choose the file, and click Open. I get this message box:
So, my question again: How do I open a DSTX file from Visual Studio 2019?
See below for detailed versions and installed extensions.
1 For example, see Lesson 1-1: Create a new Integration Services project, where they create a DSTX project. The lesson's Prerequistes instructs you to install the SQL Server Data Tools from Download SQL Server Data Tools, which is the same link from above.
2 I note that version 3.1 of the extension is currently labeled a Preview and that release notes for this version includes the text, "This is the second preview release. We do not recommend using it for production." But I do not see where I am able to download an earlier version of this extension, either from the marketplace website or from in Visual Studio. I would try the latest production release if I could find it, but it doesn't seem to be available.
I also see there are two notes about issues with this preview release. Neither seem relevant to my situation. The first is a regression in VS 16.2 where they recommend upgrading to 16.2.3. I am already on 16.2.4. The second is an issue where the extension and/or Visual Studio Tools for Applications 2019 might be deleted during a VS instance upgrade. I have not done any upgrades to VS since installing this extension.
Installed Software
Visual Studio 2019, version 16.2.4
SQL Server Management Studio, version 17.9.1.
In Visual Studio, when I go to Help|About Microsoft Visual Studio, I also see the following listed in Installed Products (this list is not complete; it includes only the items that seemed relevant):
SQL Server Data Tools 16.0.61906.28070
SQL Server Integration Services 15.0.1301.433
In Visual Studio, when I go to Extensions|Manage Extensions, I see SQL Server Integration Services Projects in the list of installed extensions.
The error message indicates you are trying to open a project/solution. DTSX is a package.
You first need to open the .sln or .proj file. Within the project (solution explorer) you can open the dtsx. Do not try to open the dtsx file from the source control explorer as that does not open with the project references.
In summary, open the solution/project, then open the package from the solution explorer.
To edit and create integration services packages (.dtsx) is necessary to install SQL Server Integration Services Projects.
After installation Visual Studio 2019 can create or edit integration packages either independently (open file) or in Integration Services Project. It is also possible to open packages on SQL server even when SSMS fails with message:
Connecting to the Integration Services service on the computer "xxxx" failed with the following error: "Access is denied."
You will have to install SSMS, SSAS from VS Extensions> (In VS Menu, click "Extensions" and then "Manage Extensions

How does Visual Studio SSIS Handle Extensions and Package Deployment?

I'm fairly new to Visual Studio and SSIS and was wondering if someone could just clear up for me how Visual Studio SSIS Projects and Visual Studio in general handle Add-In Extension and Package Deployment.
The Scenario: I am currently developing and creating a Visual Studio SSIS Package on my local machine.I need to use an extension from the Tools > Extensions and Updates which just links me to a webpage.I need to install this and use it to make a package which I will deploy to the Integration Services Catalog on a SQL Server 2014 that does not have Visual Studio installed. When I deploy this project as a package will the things the extension did be baked into the package or is it like references where I will need to install the extension on the server that will be running the package via SQL Agent Job. Thanks, any help is appreciated.
When you deploy a package to the catalog, all libraries/extensions (eg.azure connection etc) are deployed along-with, so no special treatment is needed. But many a times you will need to ensure your frameworks( eg. .net 4.0 etc) exist for the extension to be executed on the integration services server you are deploying to.
In some cases you have to register the dlls using GACUtil, to the integration services server. Your custom tool installation instructions will specify that.

How to create set up files for wpf application

How can I create set up file for WPF application ? I'm new to WPF applications and I don't have any idea about initializing this.Please help me !!
I advise you to use InnoSetup. It's a powerfull tools to make setup-wizard for all projects. You can create it easyly. And more features are available with it (icons file, registry management, associate file extension with application, desktop and start menu windows entry, and much more...)
I suggest you to go through below link if you are using VS 2010 and above-
CREATE SETUP AND DEPLOYMENT OF WPF APPLICATION STEP BY STEP WITH VISUAL STUDIO 2012
You need InstallShield packaging software to after Visual Studio 2008.
It will create a template to create deployment project, but you can
get the Visual Studio Installer Projects in VS 2010 and above , you
need to install the Visual Studio Installer Extension from the Visual
Studio Extension Gallery - Microsoft Visual Studio Installer
Projects
If you are using VS 2008 then it already have template to create setup project your WPF application. Just follow the below link to know that How use Setup Project..
Create Setup and Deployment of WPF Application Step by Step
#Hana's answer showing screenshot of the Setup Project, which is used in the VS 2008 to create the deployment package.
References:
Create an application setup in visual studio 2013
Visual Studio 2013 Installer Projects – Hello World Installer
Using VS 2008:
Add a Setup and Deployment project to the Solution
As soon as you add the project it opens the File Explorer view.
add Program File's Folder to our Setup project
add Primary output and other dependencies to Application Folder.
Select as displayed above.
Now we would add A folder to the Program Files Folder.
Now add the same as you did for the Application Folder.
add a Shortcut to User's Desktop.
Rebuild the Solution and then rebuild the Setup project.
Full help is here

Where is Visual studio 2012 Setup project template?

I'm trying to make the set up file but I unable to find any template to develop setup file.its seems like MS dump the set up wizard template.
I've tried with publish project and I got set up file. but not sure its good approach.
Since Visual studio 2012 the MS Deployment projects are deprecated. You can use WiX instead.
Use Install Shield template. It's coming up with Visual Studio 2012 and 2013

Resources