I have a website hosted using Umbraco and I want to explore the website in Visual Studio to make changes to it. I would like to open the Code that is already hosted. Is there anyways to get to it ?. Thanks in advance
You can download the source code from the live hosting (assuming you have FTP access) and open it in Visual Studio to look at the files and make changes. Just open the folder with the files in that you downloaded as an existing website in Visual Studio and you'll be sorted.
However, it will depend on what you want to change. If you want to edit the actual page content, you'll need to do that via the CMS interface (as that's all stored in the database). If you want to edit the Templates, CSS, Javascript, XSLT Macros, Razor Scripts (if its running the latest version of Umbraco and is using Razor) etc, then you can edit all of those by logging into the CMS as an Administrator. Templates, CSS and Javascript can be edited from the "Settings" section of the CMS. Macros and more advanced stuff like data types can be edited from the "Developers" section of the CMS.
The likelihood is that your Umbraco application will have been deployed in it compiled state.
In this case, you can download it and then open it in VS using the "File > Open Existing Website" option.
This will give you the ability to alter files like the CSS, javascript, masterpages, xslt and usercontrols but it will not provide you with access the "inner workings" of the CMS since this will all be compiled.
It is very rare that you should need to change any of the core CMS code but if you wanted to look around as a learning exercise (highly recommended), then you can download the source code from here.
Also be aware that the version running your site will not necessarily be the version available for download. The last version of the webforms-based Umbraco is 4.7.1.1 however they have just release Version 5 which is based upon MVC3.
Edit:
Version 5 was shelved and is no longer available. 4.11.x was the last version to be made available before the core API was rewritten in PetaPoco in v6.
Visual Studio is just an IDE. You can open any file in it (within reason). I often drag files I want to work on into the visual studio window in order to open them.
Generating a project from the files is a different trick altogether and takes a lot more effort.
Try this question for how to do that.
Download the project template for Umbraco for visual studio 2010
goto tools -> Extension Manager then search for umbraco mvc in online gallery.
after the installation of template, you will be able to create umbraco MVC projects.
Related
I come from JS world and have to run an old ASP project to see its structure.
But I can't understand what kind of framework have been used to create this.
Have tried to build it with dotnet but it's not recognized.
Here is the projects screenshot can some body recognize it and tell me how to run it locally ?
I would try opening this would Visual Studio. That does look like a typcial asp.net web forms proejct.
If you ahve a ".sln" file in the root folder, then you should be able to open this project with Visual Stuido. (just download 2019, or latest 2022).
You will almost for certain want to open this project with VS.
If there is no .sln file in the root folder, then choose from VS to open as web site.
So, there are two ways to open/use/develop these older asp.net applications. the existence of a .sln file tends to tip you off as to which method you need (and want) to open up this applcation with. But, yes, you need VS .net "IDE" and the built in designers to work on this.
So, from your screen shot, go up one folder - look for a .sln file. That's the project file you want to try and open with Visual Studio.
As noted, if no .sln, or no .prj file exists, then use the open as web site option in VS.
Looks like a WebForms project, not sure about the state of WebForms support for VSCode but Visual Studio Community should be able to run this. Try loading this project with Visual Studio ensuring you have ASP Web development work load installed.
I am trying to add a repository containing the html pages, javascript scripts, images, and c# code files for my website hosted on IIS. I have a solution in visual studio 2017 that has the website added as a project, but as Web Site's go, the actual files for the website are in a different folder than the project (inetpub vs the defualt project file location). When I tried to add the project to git from visual studio it says the portions of the website outside of the project folder will not be added or maintained by git. Is there any way to get my code onto git?
If this is your first time using git, I recommend checking out a few of the courses available online, such as Github's Hello world or their Try It tool, or a tutorial offered by someone else, like this one.
There is also an official book on how to use git and how it works, available online for free, here.
Keep in mind that while these links are mostly around github, you can use the tools here with any git host, like GitLab, BitBucket, or even your own self hosted solution
I am conducting an audit for an app being programmed by another developer. It is a dot net app, mostly c#, but obviously contains html, css, js, and some angular. This product was written using the CMS Umbraco, which means I can't open it in Visual Studio and must use WebMatrix. I have to run a static code analysis, code violation checker, and quality metrics report on the product. What tools should I use to run this reports and how to I run them inside WebMatrix? Visual Studio already has code analysis built in, but I can't find anything built into WebMatrix for this.
Visual Studio solutions typically consist of a .sln file which may reference multiple project files (.csproj, .xproj...) but Visual Studio also supports opening Web projects from directories File > Open > Web Site... When exiting or Saving all VS will prompt you to create a new solution file for the Website making to quicker to open from VS next time.
How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio.
For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file.
Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution?
Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work:
http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture_02_zps6vn4ri07.png
http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture_zpscdczk1b4.png
From your screenshots, it looks like you're using an old version of Visual Studio (either 2008 or 2010, there isn't enough showing to be sure, but I see the default .NET framework listed as 3.5 up there).
The latest versions of the ASP.NET MVC framework requires .NET 4.5. Visual Studio 2010 doesn't support this, so the solution is to upgrade to a newer version of Visual Studio which includes support and project templates specifically for the latest versions of ASP.NET MVC.
Lets say I have this link here: https://svn.apache.org/repos/asf/chemistry/dotcmis/trunk/ and I would like to download and compile the source on my windows. What is todo?
There are a lot folders, classes and some bats. I could download them via browser, one by one - but im sure this is not the way how I should do that. Do I need a special svn tool? And after that? I just have to load the porject in Visual Studio and thats it? I dont thinks so. Any step by step guides or ideas? Thank you
From the download page:
DotCMIS requires the .NET Framework version 3.5 or higher. It does not depend on anything else.
So yes, you should be able to do an svn checkout using your favorite SVN client (for example from a commandline tool, from TortoiseSVN or from AnkhSVN), build the project and profit.
If you're just interested in using the client, the download page also links to the binaries you can just download and add a reference to.
Install TortoiseSVN (or another SVN client) and give it the connection settings.
Then do a full checkout into a folder on your local machine
Also this tool AnkhSVN comes with an integrated add-in for Visual Studio that allows you to perform some operations directly inside the VS IDE.