visual studio 2010 setup project - shortcut to web page - setup-project

Is there anyway to create a web link without using custom action?
I want to add a web link to start menu that will open default browser on target machine and browse the link.

A solution is to use IniFile table like in this post.
Visual Studio setup projects do not support this, so you will need to edit your MSI with Orca. A simpler approach is to use WiX or a different setup authoring tool which offers more control over your MSI package.

What I ended up doing was adding the .url file to SetupProject and it did the trick (as it described in the post #Cosmin Pirvu referenced to).

Related

Browserlink CSS autosync not working ASP.NET Core 2.0

I cannot get the CSS to sync in ASP.NET Core 2.0.
Here's what I do:
Create brand new application using MS template
Launch the generated template (app.UseBrowserLink() is present)
Try to modify site.css by setting the background-color to yellow
Nothing happens
I have the CSS autosync enabled, in the browserlink dashboard I can see the connected browser and I can also use the Refresh button on the dashboard
.
Funny enough, when I create a new project using the classic old ASP.NET MVC template, CSS autosync does indeed work, however I cannot make it run on ASP.NET Core template
I've also tried installing the BrowserLink.Loader assembly and referencing thatone but to no avail...
Any help greatly appreciated
It looks like this is an open issue with Visual studio, and as of October "CSS Auto-Sync isn't supported on ASP.NET Core yet".
Something you could try is to use Chrome's "add folder to workspace" feature as suggested here and you can also try enabling browser link for static files which has helped some people to make it work.
You can also vote on this to encourage Microsoft to implement CSS autosync for ASP.NET Core.

Web Essentials settings error and its setting for LESS

I have installed VS2013 installed on my computer. I also installed
Visual Studio 2013 Update 2 RC
and
Web Essentials 2013 for Update 2 RC
successfully. Now when I work on a website project, go to WEBESSENTIALS top menu, and select create solution settings, I get the following error message:
Path cannot be null.
Parameter name: path
Does anyone know how to solve this issue?
Also, I want use the LESS feature of web essentials. Can anybody tell me how?
Thanks!
You may need to add a solution to your project to create a Web Essentials solution settings file. If your project (Web Site) doesn't have a solution, I'm guessing there's no solution to apply settings to.
What I do is create a New Empty Project, then add a New Web Site... or Existing Web Site.. to the solution.
It seems in my experiences that when I use 'File > Open Website', it creates a temporary solution, but Web Essentials doesn't seem to use this for its solutions settings.
Right-click on the targeted project in your solution & "set as startup project."

Cannot load ClassDiagram.cd on Visual Studio. "URI formats are not supported"

When I try to open a class diagram for my asp.net webforms project I get the following error. The Class Diagram (.cd) files get generated but I can't open them.
I do have some classes that use the URI class but i don't really think that could be the issue. Right? Why would a class diagram care about one of my classes using a URI datatype?
I'm using vb.net Visual Studio 2012 and the project is targeting .net 4.0. I'm aware there is another question in stack overflow asked about the same issue, however there were no answers posted to it and it's close to a year old.
Help will be greatly appreciated, thank you.
I had the same problem and was able to fix it in Visual Studio 2012 Professional just now for a website I am working on with my team.
This is not about one of your classes using the URI data type.
My setting under "WEBSITE" in Visual Studio was previously set to "Use IIS Express". When it is set this way, you can select the alternative option, again under "WEBSITE" which is "Use Visual Studio Development Server". I'm not certain, but I think this is what the other posters describe above when they say "open web site in file system mode". When I am not using IIS Express, the class diagram generates, is not blank, and opens fine for viewing in the IDE.
Please open web site in file system mode (and not in IIS express ) and it will work.
when you load the website, visual studio will tell you that it is already using IIS Express to serve websites do you want to continue using it or not, select no so that you can use visual studio and bot the IIS. my things worked after that

Friendly URLs with WebMatrix and razor

I'm new to ASP.NET and I'm learning first in WebMatrix using razor syntax.
In PHP I used .htaccess to route URLs to database posts, for example:
http://mywebsite.com/linux/how-to-install-wamp-in-ubuntu-12.04
In that case routes to file:
http://mywebsite.com/routes.php?title=how-to-install-wamp-in-ubuntu-12.04
I'm trying to route like the PHP example:
http://mywebsite.com/routes.cshtml?title=how-to-install-wamp-in-ubuntu-12.04
Can I do it in ASP.NET with WebMatrix and razor?
I know how I can take GET data in ASP.NET, but I don't understand how I can make a friendly URL and how I can route to "routes.cshtml" when the page isn't found.
There is an existing package specifically for ASP.NET Web Pages that lets you do what you want and it is available via the WebMatrix Package Manager. It is called Routing For Web Pages. I have written an article on how to use it: http://www.mikesdotnetting.com/Article/187/More-Flexible-Routing-For-ASP.NET-Web-Pages
Details: Microsoft is now making this very easy to do for ASP.NET Via a Nuget Package. Unfortunately, this package "Microsoft.AspNet.FriendlyUrls" is currently in Pre-Release and WebMatrix doesn't allow you to download Pre-Releases. As a result, following my way of doing it might not be as easy compared to if you just had Visual studio or VS Express.
My suggestion is to download Visual Studio Express 2012 and either use that for developing or just use it so you can get Nuget Packages.
Ill assume that you want to develop in WebMatrix.
Solution:
Download and Install Visual Studio Express 2012.
Create a new Website
In solution Explorer, right click on your Website and select "Manage Nuget Packages.."
Press the drop down that says "Stable Only" and choose "Include Prerelease"
In the search box enter "Microsoft.AspNet.FriendlyUrls"
Select "Install"
Open your project in Windows Explorer so you can see all the files.
Copy the folders "App_Code" and "bin" into your WebMatrix Project (e.g. Add them to your solution).
Add a Global Application Class "Global.asax"
In the Application_Start method add the following line
RouteConfig.RegisterRoutes(System.Web.Routing.RouteTable.Routes);
You will now have FriendlyURL's
I know this seems like a lot of work but if you had Visual Studio or WebMatrix allowed Pre-Released then it would be very easy to follow.
Warning: If you do decide to develop it in Visual studio delete the following files as the Mobile part of it doesn't work currently (Hence why it is Pre-Release)
Site.Mobile.Master
LiSite.Mobile.Master.designer.cs
ViewSwitcher.ascx
ViewSwitcher.ascx.designer.cs
Future: In the near future there will be release version of FriendlyUrl's and then you will be able to get it from Nuget in WebMatrix much more easier.
Links To More Information:
Information on Microsoft's Friendly Url Package
Information on how to use Nuget in WebMatrix
of course you can, it is called URL Rewriting
http://developer.mindtouch.com/en/kb/Installing_MindTouch_Core_on_Windows_%28IIS%29/Rewrite_web.config_for_IIS7
or here
http://www.phpgenious.com/2010/04/url-rewriting-with-php-and-iis-7/
or google for more info

Drap and Drop in Eclipse for Web Projects

Is there an equivalent drag and drop style for Eclipse (or any IDE in Java) for J2EE or JSP that is similar to the IDE feel of ASP.NET in Visual Studio? ASP.NET allows you to drag and drop controls to a web form or web page.
Netbeans IDE is the answer of your question. You can design your JSP pages like you are designing Asp.NET pages in Visual Studio. Here is the link of this feature of Netbeans.
Netbeans Visual Web Design http://www.netbeans.org/images/v6/5/screenshots/visual-web-jsp.png
I don't know Visual Studio's capabilities, but Eclipse of course offers visual editors in form of a plugin. Here's an example of a JSP editor (http://www.myeclipseide.com/module-htmlpages-display-pid-12.html). There are also editors for Swing GUIs etc. Just Google for "visual editor/designer eclipse jsp".
I had this same question this morning, so I downloaded Eclipse and tried to figure it out (I typically use Visual Studio). Here it is, but it is apparently not nearly as capable as Visual Studio Design View. Create an HTML file, and then right click on the file and select Web Page Editor.
I learned about it from here, it was difficult to find. http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13837.html
I would love to see a comparison between VS Design View and Eclipse Web Page Editor; seems like building UIs for the Internet still (after many many years) a mess.
Screen Shot of Eclipse Web Page Editor
Eclipse Web Page Editor http://www.petegordon.com/eclipse_web_page_editor.jpg
Visual Web Pack - http://netbeans.org/community/magazine/html/03/visualwebdev/ , which provides you with all the resources you need to create a proper page with customizable designed.
You put no restrictions on your IDE, so I can safely say that it is for NetBeans (only build 5.5, however). It is a discontinued project, but whatever is already made, is made to last a while. Strongly suggest.

Resources