Where is the folder with ReSharper snippets? - resharper

In Visual Studio there is a folder where snippets are stored:
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC#\Snippets\1049\
Where is the folder where the ReSharper snippets are stored?
Pic-1.
Pic-2.

ReSharper stores templates in its settings files. The settings file can be stored in a number of places, including per-project, per-solution, and machine-wide settings. The "Layer" dropdown on your second screenshot allows you to see/edit templates from a particular settings source. You can read more about ReSharper settings and where they are stored in Manage and share ReSharper settings.

Related

MS Visual Studio Add several config files

I'm adding a Project (console application) to an already existing web project in Microsoft Visual Studio 2012. I'm trying to add a number of config files depending on environment application is run in...the files highlighted in the red box in the picture below
I've had a look online and it suggests right clicking on the App.Config file and selecting 'Add Config Transform', however, this option does not appear. I also read you can't 'Add Config Transform' for web applications. However, the Project I'm trying to add these additional config files to is a console application.
Any suggestions on how to achieve the multiple config files is greatly appreciated.
Thanks!
As I recall, VS 2012 only did transforms for web.config. So when we had the same problem we solved it by adding the SlowCheetah Nuget package, which adds the ability to auto create transforms for each of your builds, for app.configs as well.
Have a look at this post as well, which discusses this:
App.Config Transformation for projects which are not Web Projects in Visual Studio?
Hope this helps!

Visual Studio - InstallShield setup in a project with System.Data.SQLite

I have a C# class library that references System.Data.SQLite (from nuget). This is the structure of my bin folder after build:
MyProject.dll
System.Data.SQLite.dll
x86/SQLite.Interop.dll
x64/SQLite.Interop.dll
System.Data.SQLite needs the SQLite.Interop to run and the correct dll is found at run time. However, when I generate a setup with InstallShield that includes the project primary output, the x86 and x64 folders are not copied and my application fails to run.
There is any way to force Visual Studio to include x86 and x64 folders in the primary output?
There is any way to include the folders manually in the InstallShield with relative path?
My environment:
Visual Studio 2012 Professional
Install Shield 2013 Limited Edition (Free)
System.Data.SQLite 1.0.96
Yes, there is a way to add/deploy folders through InstallShield. Under the Files tabs you can add the files/folder. While adding these files you can set relative path as well in this. Just set a property with the path and use that property in your relative path. So where do want to copy these files (reference locations for DLL), you can add that folder structure through InstallShield and you can add files in that.
I just ran across the same problem using VS2013 / Installshield LE; I ended up opting for changing the NuGet package on my machine to NOT create the x86 folder for the SQLite.interop.dll under the build folder.
To do that, look in the "packages\System.Data.SQLite.Core.1.0.104.0\build" folder under your project directory. Then pick the subfolder pertinent to the version of .NET you're targeting, and open the "System.Data.SQLite.Core.targets" file in a text editor. You'll want to delete all references to "%(RecursiveDir)" EXCEPT in the "SQLite Interop Library Content Items" section. Save, clean, and rebuild - the interop dll should now be in the same folder as the main executable/etc, and Installshield should be able to automatically include it as a dependency.
If it doesn't show up in the right place, try editing a different .NET version's .target file until you hit the right one.

Setting up SSIS Item Template in SQL Server Data Tools for Visual Studio 2012

I have created a dtsx file to use as an SSIS package template. I want to be able to use the file as a template by clicking on an open Project in Solution Explorer and selecting Add -> New Item
My questions are:
How do I save this as a template file? Its currently a .dtsx file.
Where do I have to place the file so its in my list of options in the Add New Items dialog? I have seen many conflicting paths and none specifically for SQL Server Data Tools for Visual Studio 2012.
I have searched for instructions on how to do this but have now found clear instructions for use with SQL Server Data Tools for Visual Studio 2012. Posts I have found are conflicting and don't clearly explain how convert the dtsx file into a template file. The link here is an example of conflicting info; its posted for vs 2010 and examples are for vs 2005. I have also tried to use the Export Template Wizard but this feature seems to have gone away in SSDT for VS2012.
You need to copy the dtsx package to following location and restart the SSDT for VS2012. Note that the VS installation location may be different in your machine.
First select the package that you want to export as a template and then Select File->Save As..
and save it to
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems
E.g.
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems\MyTemplatePackage.dtsx
Quote: I have also tried to use the Export Template Wizard but this feature seems to have gone away in SSDT for VS2012
SSDT for VS2012 does not have an export template wizard. It's only avaible for VS2012.

How to know database file path after publishing project in visual studio?

I published my project in visual studio by right-click on my project and click publish, the problem is the database file path is changed and i can't find it, i need the path to put it in connection string
can any one help me, please.
Visual Studio will publish an application to a folder where you've told it to; by default it's [project directory]\publish\. The files for a particular publish will be in [publish directory]\Application Files\[revision number]\ by default.
You can check the path by right-clicking on a project in the solution in Visual Studio, selecting Properties and then the Publish tab. If the path is relative, it's in the project directory.
In the Application Files folder, you will find a bunch of files with .deploy extensions; if you've put your configuration in app.config, you should be able to edit it by opening the file [Project name].exe.config.deploy in a text editor.
It's an XML file and you should be able to identify the part you need to change. It will typically look like
<setting name="SettingName" serializeAs="String">
<value>some setting value</value>
</setting>
Installing the application with the created setup file, assuming that the hand-changed revision is the newest one in the Application Files folder, should install it with the new connection string.
I still urge you to consider just changing the app.config file within the project and doing a publish again, this is the way you should be doing it.

What's this file in Visual Studio 2012?

It is not really existing in the folder of the project but somewhere else, is it a refrence file?
That icon displayed means its a file referenced from a folder outside the Solution. Visual Studio C# Solutions generally show the file system directory that project file is in. Files outside of that are shown as being linked in, or referenced, by that icon you see there. See Adding as a Link.

Resources