I'm wanting to create a bunch of snippets for Visual Studio on my macbook and back them up (or move them to another mac).
I find a directory in my home called Visual Studio 2017 as shown in picture but all the directories are empty (even after I created my own snippet and exited VS).
Visual Studio Mac User-defined Snippets location:
~/Library/VisualStudio/7.0/Snippets
Note: This from your home dir (~)
Within there you will find your snippets as xml files, the name starts with the id that you assigned the snippet, i.e.:
se.template.xml
Related
I am attempting to publish an application from visual studio that has files in the solution. After instilling the program and executing it I get this error.
Could not find file
'C\Users[User Name]\AppData\Local\Apps\2.0\7D4MADG.G94\9BLZYH2N.QOP\wdts..tion_0000000000000_0003.0000_8e564612a360b47a\wdAttrColSettings.xml
I need to know what I need to do to have the files in the Solution Items folder put in the wdts..tion_0000000000000_0003.0000_8e564612a360b47a folder when the application is installed.
In my brief experimentation in Visual Studio 2019, it doesn't look like you can copy Solution Items to the output directory.
This is, presumably, because there's no actual project (i.e. MSBuild or whatever) that would define those actions.
If you put those files inside one of the projects, you can use the "Copy to Output Directory" property.
I have Microsoft SQL Server Data Tools for Visual Studio 2017, version 15.5.4.
I have created a report .rdl file that I want to use as our report template.
I copied this .rdl file to:
C:\Program Files (x86)\Microsoft Visual Studio\2017\SQL\Common7\IDE\CommonExtensions\Microsoft\SSRS\ProjectItems\ReportProject
After restarting SSDT/Visual Studio, I couldn't see any change.
Just in case, I also copied an existing .ico icon file and named it the same as the report. Also I added a new line to the ReportProjectItems.vsdir file.
Still, I cannot see my report template after restarting SSDT/Visual Studio when I try to create a new SSRS project. I must be missing something, but I've gone over all of the other similar questions here, and still no luck. Has anyone figured this out?
screenshot of folder and files
From what I can see, you are saving the template.rdl file in the correct location. In order to use the new template, you would need to create a new report by right clicking on the "Reports" folder for that poject and selecting Add > New Item.
Reports > Add > New Item
From there you can choose the template .rdl you uploaded earlier.
Just to wade in on this one, I've been researching exactly the same thing today. The Microsoft docs (As per usual) are utter rubbish. They do not give the correct file path and the one that worked for me very similar to the one that PatrickMcd listed in his screenshot (I'm using VS2017 Professional btw):
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\SSRS\ProjectItems\ReportProject
When I placed my template RDL in this folder, I did have to restart VS2017 but then it worked a treat and appeared as an option when adding a new report.
To reiterate, the rdl needs to go in:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\SSRS\ProjectItems\ReportProject
I can't say here what I think the MS docs are but it rhymes with white.
First, I am new to Monodevelop and Gtk# (but have experience with Visual Studio, C# and Winforms).
In Monodevelop I designed a form by dragging widgets onto it. I entered a value for the Name and (the same or a different value) for the MemberName. However I can't access the widgets in code.
In Visual Studio there is a form.Designer.cs which contains the code that creates the controls. What is the equivalent in MonoDevelop? I would like to examine the code so I can learn from it, and to find out how I can access a widget in code.
I am using MonoDevelop 5.5, Mono 3.10.0 on Linux Mint 17.1 64-bit.
(This question has been asked before, but that answer doesn't help me).
The GTK# generated code will be in a .cs file inside a gtk-gui directory inside your project. The .cs file will have a similar name to your widget class name but will have the full namespace of the class as part of its name.
MyWidget.cs
gtk-gui/MyGtkApp.MyWidget.cs
Also you will need to compile your project before the code is generated. The new member names should be available from within the widget's class.
I made a goof and renamed my SSIS package without fully understanding what I was doing. Now I get "one or more solutions couldn't be added..." I then go to my solution explorer and no solutions are there. Please note that I've been working on this project for 6 months. I checked the project obj folder and all my solutions are there. I'm pretty sure I have to rename something else. Will somebody please help me. I am an intern and am FREAKING OUT.
Let's examine what's happening. I am using SSIS 2012 in this example but the steps will be the same for 2005 to 2014. This assumes you have turned off "hide file extensions".
Visual Studio is an Integrated Development Environment, IDE, for developing software. The outermost concept is a Solution. See 1 below. Solutions solve a problem as a whole. A solution might need multiple tools to solve a problem. A tool in this case, is a Project (#2). Depending on the type of project, different folders and such will appear in section 3. This is an example of an SSIS project.
If you don't see your solution, there's a question for that Solution Folder Not Showing in Visual Studio 2010 - How Can I Make It Visible?
If I Rename the project JeffOrris to JeffOrris2 and close Visual Studio, it will prompt me to save changes to JeffOrris.sln (and optionally, the project). If I click No, when I reopen the solution, I am greeted with the following error message along with Visual Studio indicating that my project JeffOrris is unavailable. :'(
---------------------------
Microsoft Visual Studio
---------------------------
One or more projects in the solution were not loaded correctly.
Please see the Output Window for details.
---------------------------
OK
---------------------------
To start fixing things, you have to get Visual Studio to play ball. You can do this one of two routes. The first is to Add the renamed project back into the solution. Add... Existing Project... and then find your .dtproj file (or .whatever it was with 2005/2008) Assuming that loads fine, you can right click on the one that isn't loading and select Remove. Then click "Save All" or Ctrl-Shift-S
Option 2, which is what I do is to go mucking about with files. Find where your .SLN is. If your project is still open, it will indicate it under properties but once it's bolloxed then you'd need to right click and choose Open Folder in File Explorer.
However you get here, look at what you have.
A solution is represented on disk by a .sln file. That's a text file, might be UTF-8 but it's human readable text. The .suo file is binary that keeps track of what you have open and such. It doesn't matter, the .sln does.
Take a peek inside your solution file. Knowledge is only good for you
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{159641D6-6404-4A2A-AE62-294DE0FE8301}") = "JeffOrris", "JeffOrris\JeffOrris.dtproj", "{631559E9-5ED5-4F63-B74E-BFB6CBAE89C5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Development|Default = Development|Default
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{631559E9-5ED5-4F63-B74E-BFB6CBAE89C5}.Development|Default.ActiveCfg = Development
{631559E9-5ED5-4F63-B74E-BFB6CBAE89C5}.Development|Default.Build.0 = Development
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Of importance is the line starting with Project. That says I, the Solution, have a Project called JeffOrris and the project file can be found, relative to my location, at Folder called JeffOrris and inside there a file named JeffOrris.dtproj
The "trick" then is to make your subject and verbs agree. Or in this case, make your Solution and your .dtproj file agree. That'd be #6 below. After saving the solution file, Visual Studio should prompt you to reload it and whoosh, your project is back.
If you have inadvertently renamed the .dtproj file, then you can rename it back. Again, save all
When I am editing a css or JS file that is in say a folder called "Theme". How do i set up another folder say it is called "ThemeBackup" to auto sync its internal files.
Example:
If I edit "Theme/css/mystyle.css". Then i want Visual studio to automatically checkout the file "ThemeBackup/css/mystyle.css" and make the same change i just made, syncing it with the original.
Aditional information:
I am using a ASP.net MVC4 Web Application