How do you publish for direct download in Visual Studio Marketplace - visual-studio-extensions

I have created a Visual Studio Extension and published it on Visual Studio Marketplace.
I have specified a link to my website, instead of uploading the file to the Microsoft Site.
The extension is visible from within Visual Studio, but when you click on download it opens a browser to download the extension, rather than downloading it directly in Visual Studio (as is common for other extensions).
Is this behavior because I specified a link, rather than uploading the installation file?
If not, what would cause this behavior? I have not found any documentation of this detail.

Is this behavior because I specified a link, rather than uploading the
installation file?
I think so, if you upload the extension(.vsix) with Uploaded extension option, it will behave like normal situation.(VS will download it directly.)
But if you use Provide a link option, when you click the download button in VS, it will call browser to download the xx.vsix instead of downloading it in VS IDE.
For the extension uploaded with installation file(most extensions are uploaded in this way), the download button in VS marketplace is Download.
And for the extensions uploaded with link, the button here is Get Started. Such as OzCode, DevExpress .Net Application Framework...
I published two extensions with different ways(installation file and link), when I
click download button in VS, the A(uploaded with xx.vsix) will be downloaded directly and B(uploaded with link) will be downloaded by browser. So I think what you experienced is expected behavior for VS extension manager.

Related

How to Hide ASP.Net Website Source Code after Deployment

Am using Visual studio 2012 i cant hide ASP.NET Website source code .
Please support me.
Am try to see some tutorials those tutorials are for Project not for website.
If you are referring to the HTML or JavaScript code in your site, you can't hide that because it is required by the users browser to render the website.
If you are referring to the C# code files those should be compiled into binaries and only the binaries should be published out to the website folder. If the C# files are being included you probably need to set the Build Action on these files from "Content" to "Compile" via the Property window.
That being said the DLL binaries can be de-compiled in most cases. You can buy tools that will try to obfuscate your code which will make it harder but not impossible to de-compile.

How do I open this in Visual Studio?

I came across this project online and can't really get it to open with Visual Studio. Extremely new to Visual Studio. This doesn't have an exact project file that can be opened from what I've understood. It has a bunch of .cs and .aspx.cs files. How exactly do I open and execute this project in Visual Studio? Or am I barking up the wrong tree and trying to open something that can't be opened?
Link to the project - http://www.speedyshare.com/98XZf/ca-ma-sy
May be your project is not a web application project. it might be wesite.
If it is web application you will find .csproj file, if you didn't find then just follow the below steps
Open Visual Studio
click on file --> Open --> Website
You will get dialogue box with local file structure, Just Navigate to your project folder and select and click on open, After click on open your solution will be ready with your project.
Cheers,
Vijay

Can't find the Publish Website Option in Visual Studio 2012 Express Web

I created an Empty Website (not a project) using File > New Website > Aps.net Empty Web Site. Usually when I click on Build, there is an option to "Publish Web Site". However, I don't see it here. All I can see is build and rebuild solution. What am I doing wrong? Even when I right click on the website, it just gives me an option to Build, but not Publish. I previously was using VS 2010, and it has the Publish option.
Publishing is only support for web application projects, not web site projects.
http://msdn.microsoft.com/en-us/library/dd547590.aspx
I don't know if this is true in all cases, but I just uninstalled VS 2012 Web Express, deleted the contents in the Microsoft Visual Studio 11 folder, and then installed the Professional version instead. Maybe the Express version doesn't have this, but after installing the Professional version, I do have the "Publish Web Site" option.
I believe this problem can be solved by downloading and installing the relevant Web Publish Update from this web page:
http://msdn.microsoft.com/library/jj161045
I had the same problem in Visual Web Developer 2010 Express. When I installed the update, the option to "Publish Web Site" became available to me.
EDIT: You may find that when you click "Publish Web Site", you get an error like this:
the imported project "C:\ProgramFiles\MSBuild\Microsoft\VisualStudio\v11.0\WebSites\microsoft.website.publishing.
targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I solved this problem by going into "website.publishproj" (found in the Solution Explorer with my website open), and "hardwiring" the WebPublishTargetsVersion element like this:
<WebPublishTargetsVersion>10.5</WebPublishTargetsVersion>
For some reason, the existing code was returning 11.0, instead of 10.5.
Hardwiring it like this might cause problems later if you update your version. So do it with caution.

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

How do I open the Orchard project?

Loading it in VS 2010 throws many errors, though it does finally, albeit partially, load.
Also, the .PROJ file was not recognized by Windows at all, I opened the .SLN file in the /src folder but that threw tons of errors when loading up in VS web express 2010. Is that the problem? Do I need full version VS 2010?
Have you enlisted the full source code from Codeplex as described here? If you want to work with the source (eg. for module development) you should fetch the full source and not use the prebuilt package, which is intended for server deployment.
Also, I'd advise you to read this article about building Orchard from source. Visual Web Developer 2010 Express should work perfectly (as Orchard can be built without having VS at all).
It's ok that .proj file was not recognized - it's just an MSBuild XML file for automating the build process. You almost never have to touch those.

Resources