VS2013 update 5, MVC5
I'm able to use glyphicons but not every one of the presumably free glyphicons come up. I read a great many posts but thought before I do anything to my IDE I better ask for some help. We often start changing things without knowing why, and it causes other problems.
I'm able to display the glyphicon-shopping-cart from inside a standard MVC5 templated project; glyphicon-shopping-cart shows up in intellisense. But there is not an intellisense entry for glyphicon-shopping-cart-in or glyphicon-shopping-cart-out.
So I downloaded the free glyphicon file and it includes both cart-in and cart-out. But I don't understand where I would place those files in Visual Studio for use.
Hence my question "Where are the glyphicons stored" so I can add extra ones to that location. Or is it some special setup that is not easily added to?
Related
In today's guessing game, I have inherited this website project from the previous inhabitant of my desk, but I don't know how to run this site within visual studio, or, for that matter, outside of visual studio. As far as I can tell, this website project is written with Foundation 6 and Handlebars, but the project structure doesn't exactly match the default templates that I have seen when looking at Foundation or Handlebars. The rest of the solution (not shown) runs just fine, with no issues, but it's not written like this. It's all the normal .aspx type stuff.
I've tried to set this website project as the Startup Project, but when it builds and runs I get a 403 error (Forbidden). If I simply try to browse to the default or index pages, I get (see image below). Something is definitely missing, but I don't know how to tell what. Also, we have this page active in a dev server, and it works just fine, but again, idk how, or how to find out how.
Any idea of what I'm missing or suggestions on what steps I need to take to troubleshoot to get this thing to launch properly?
Thanks!
I'm a n00b with these source control methods. I just signed up for the simple VS online. Previously, when I was working with Orchard's source, I put it up in my OneDrive in order to work from the office and from home. It's worked pretty well.
But now I wanted to try out VS online. I guess because of how the source folders of Orchard is set up I cannot "Add solution to source control" from the top-level Orchard (i.e., opening Orchard.sln contained under the ~/src folder). From what I gathered in my research you have to manually add stuff, but I can't even get that far.
I created a project in VS online, and tried to "map" it, but was unsuccessful (all it did was add some build process templates).
Anyone know of the steps to add a clean Orchard 1.8 source to VS online. Thank you in advance.
Edit: Adding 100 Bounty
I'm really out of options here, so hoping a bounty of 100 will get me a detailed answer with steps to accomplish this properly.
I was originally using OneDrive (7GB free version), but am running low on space for Orchard source (I have other work on there, Orchard is less than 1/2 that space). I also have OnDrive for Business (20GB I think), which should have been sufficient HOWEVER they limit the amount of files to 20,000, and with third party modules/themes in my source I am running close to that number and the files won't sync because of that limit.
It seems to me the free VS Online would be the best option, then for me to just push/pull changes between home and work.
Any help is much appreciated and I hope my small offering for bounty is sufficient to elicit some good answers.
Thanks!
Create a new project in VS Online for Orchard
Make sure you have Visual Studio Online source control setup in your local instance of Visual Studio
Get a clean copy of Orchard CMS source code
Open the Orchard.sln in in VS
Right click the Orchard.sln and select 'Add Solution to Source Control' near the middle of the popup menu
Select if you want Team Foundation or Git style of source control (this may not appear as you may have defaulted it)
Select the project from VS Online that you want to add the source code to (see picture)
Check in your code from VS
You should be done.
I'm working in VS 2010 and am connected to a Team Foundation Server.
In order to edit source files I have to check them out from the server. After I'm done with editing, I have to check them back in (to make changes visible to everyone else) or discard changes.
I am currently in the process of getting acquainted with the architecture and systems, so I'd like to add a lot of personal comments while I play around with everything.
However I'd prefer to not make these comments visible to everyone else. (And I dont want to delete them everytime I commit changes via check-in)
Is there a VS function I did not yet discover or a plugin that allows me to enter comments that dont get commited to the TFS? Maybe something like virtual post-its, just something that lets me attach stupid reminders on certain blocks of code?
(yes I know, proper documentation would make this obsolete but the system is as it is and its huge and I'm not the one to document this all, just want to get used to the code)
VS2010/TFS2010 no built in functionality that I know of, for TFS2012 you could possibly use code reviews.
Maybe the Visual studio extension StickyNotes is what you want.
We have some legacy Classic ASP websites to maintain, and are wanting to use VS2010 to edit them, due to familiarity because of lots of .Net work.
I can open the website inside Visual Studio.
I can configure IIS to run the website based on the working folder used in VS2010.
I can configure VS2010 to automatically open my default browser pointing to the correct location, using the 'Base Url' setting in the Properties page.
What I CAN'T do, is work out where VS2010 stores this value, as there's no mention of it in the solution file that VS2010 has created, and as there's no project file for the website, there's nothing there too. Yet, when I close and re-open VS2010, it somehow retains this information.
This is important to me, as I need to be able to commit all files to our source control for use by other developers and, ideally, not have them worry about setting this value themselves.
So, the question is: Where does Visual Studio 2010 store the Base Url when working on Classic ASP websites?
I don't know where this is saved, but in tracking things like this down in the past I typically take the following approach:
Open Visual Studio and change this one setting
Apply the changes
Look for all files that have been modified in the last 1 minute in the project folders and in the Visual Studio folders
You can be sure there will be at least a few other files changed that are not relate to this, but it should narrow your search. You may want to re-close VS before searching too, but that will modify other files as well (making for a slightly larger pile of changed files to sift through).
If you still don't have it, search the registry (but I cannot imagine this would be where it was storing anything project specific).
EDIT:
Just created a new project and played with setting this property. It is definitely stored in the .suo (Solution User Options) file for the project, in the root of the project folder as #Lankymart suggested (and is a hidden file if you are not seeing it). It is not stored in plain-text.
You may be able to access it programmatically here: http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivspersistsolutionopts.loaduseroptions.aspx
As there are a ton of absolute path settings in these files, moving it to other environments is not really an option. I would suggest you are stuck with project start up documentation that lists these settings as part of the project setup process. I think any other solution is going to be equally annoying|fragile (or worse).
Not sure if there is another way to accomplish what setting the base URL does without managing from the Start Options panel - that is likely your last-best hope for a solution.
On the current project I am working on, there is, at the moment, a large churn of code, which means updating from source control can mean at times many csproj file changes. As we all know, VS2010 doesn't have a "Reload all" button, but you must reload each project and confirm each reload.
Is there a method where either the project is auto-reloaded or the IDE can detect this and ask for a solution reload?
Finally found a solution:
http://lostechies.com/jimmybogard/2011/01/27/reloading-all-projects-with-vscommands/
Quoting from the site:
Quite often I’ll find myself working
in situations where multiple projects
have changed, and Visual Studio asks
to reload them, one at a time. This
happens when I’m working a lot with
source control, and doing things like
switching branches, performing merges,
or just integrating upstream changes.
I have to click “Reload” a million
times for each project that changed on
disk, and it’s quite annoying. On top
of that, VS forgets which files I have
open, so every file that I was working
on gets closed.
I may be the last VS user to find out
about this, but a free lite version of
the VSCommands plugin is available on
the Visual Studio Gallery that does
just what I need – reload all changed
projects at once, preserving which
files I had open:
It's a pain, but the best option I've found is to Close the solution before Getting the latest source code.
If there are more than two changed projects, it is faster to manually unload&reload the entire solution than it is to Get and wait for it to unload&reload the affected projects only - reloading projects is achingly slow (even disregarding having to click the OK button for every project that changed).
(In my mind the real question is: Why does it ask that question at all??? If you Get the latest source code, there is absolutely no sane reason why you would want to only use part of it. It's like a petrol station attendant saying "You've bought some fuel. Would you like me to now actually put it in your car, or shall I just pour it out on the ground?")
Well, that doesn't work if your references paths changed in the csproj file and your using something like the sysinternals junction tool to change a symlink. E.g. tool switches D:\Projects symlink from D:\Baselines\1.0\Prjects to D:\Baselines\2.0\Projects , and because someone changed the folder structure between 1.0 and 2.0, your .csproj file suddenly points the dll path from ....\References\some.dll to ....\References\3rd-Party\some.dll . I know that is a special case, but happens (e.g. in my company).
There is an alternative solution though, one which I highly recommend as it has other benefits, too: the not-so-well-known VS 2010 Extension Solution Load Manager. It defers loading of Projects to the background, or until manually loaded, improving solution load time a lot for large solution files. It has this "reload solution" button in it's menu (unfortunatlely there seems to be no shortcut) which then reloads all solutions from scratch, skipping/backgroundloading the solutions you set. A Microsoft guy commented on his blog that they wanted to include something similar into VS 2010, but the feature didn't quite make it.
Sure, it may take longer then "just" one click and updating 100 documents, but it solved my problem of (relative) reference path changes, and gives a nice speed boost every time I open an at least medium sized solution.
Edit as of Oct 2013
VS2012 includes this functionality by default. At least the async loading stuff. The "don't load at all" functionality is unfortunately only possible by using manual "unload project" in VS2012. But as pr-project memory consumption did go down with VS2012, it's not that big of a deal anymore.
If you have checked the option "detect when file is changed outside the environment" in the "Documents" section of options, projects and files are reloaded when changed. It works for me when switching branches in git.