I want to add a web service reference in my ASP.NET Core 2.2 project in Visual Studio for Mac 'Community' Edition (7.8.3) Build 2. From an answer I read Add Service Reference in .NET Core in Visual Studio for Mac, right clicking on my project reveals an Add command, however I do not see anywhere to add a web reference under it. All I see is to Add Nuget Package, file, folder, and docker support.
Please what I'm I missing that is not making the Add Web Reference command appear under the Add context menu in my web project.
I've tried downloading Visual Studio for Mac 'Professional' Edition, but clicking on the download link on the website, still downloads the 'Community' Edition.
My context menu screenshot
This is not currently supported in Visual Studio for Mac.
The code that was being generated, when adding a Web Reference, was using System.Web.Services which could not be compiled with a .NET Core or .NET Standard project so the ability to add web references was removed for these types of projects.
Service references are not currently supported in Visual Studio for Mac.
There is a dotnet svcutil command line tool you can use to generate service references. Not sure if you can use that instead, depending on what web service you are trying to use.
To have support for service references in Visual Studio for Mac probably the best thing would be to open a feature request for it.
Related
I've installed Visual Studio 2019, created a Console Project and I want to consume a Web Service via an existing WSDL.
I've already followed all the guides that I've found on internet about the previous versione but none of them apply to my situation.
Can you provide me a solution to accomplish this action?
There is some additional installation component that i need to add?
Kindly,
Roberto
I've found the solution. The issue has been generated by the integration of the git repository via Visual Studio IDE which has altered the solution.
I've deleted the project, recreated it, added the service and then, via command line, I've integrated it in git.
Now it all works fine.
I need create react app that create in visual studio and working with simple "F5" key. I don't need create react project C# in visual studio because this project type (Microsoft react project) have not my standards.
my reason for don't use Microsoft react project sample is :
the negative point of Microsoft react project for me is that project type have server side programming in client side and from the other hand Microsoft force me to use type script and give me much useless dependencies i never use in my project.
i working on a fat client (rich client) application and just call some API from client.
i need create a good infrastructure .
I have found a way that may helps:
create an empty folder outside of VS.
create the stuff needed for a single react.js pack (index.html, etc.)
add it as an existing website
So no .net unnecessary extras will be there.
Best option will be create a react project outside Visual Studio. For that open up powershell or terminal and follow these steps-
Make sure npm & node.js is installed.
Create a React.js project- npx create-react-app my-app
You can either import this project into Visual Studio or install Visual Studio Code and open project there.
Visual studio code won't give you an option for running app using F5 key but you can open terminal (shortcut- ctrl + `) and type npm start
I am using the community edition Visual Studio 2015. I want to setup the environment to use TypeScript to be used in an asp.net webforms application. I see lots of guidance in doing it using Visual Studio Code but not in Visual Studio. I was following the methods given at http://mobilemancer.com/2015/08/14/getting-started-typescript-1-5-in-visual-studio-2015/ However I don't see the option for NPM Configuration file under DNX. I see it only under C#, so probably it is server side while DNX represents client side. I have installed Visual Studio 2015 Update 3 as well as .Net Core 1.0
Thanks
It's actually pretty straight forward:
Install TypeScript from Tools -> Extension and Updates
Add tsconfig.json at the root of the web form project. Refer to this link for more info on the TypeScript configuration file.
Add TypeScript file (*.ts) to your application
Add link to the transpiled JavaScript file in your page. You can define where the JavaScript file is created in the tsconfig.json file.
If you need to use NPM, then your original reference link works just fine.
I don't know why Visual Studio is such that there are a million different versions (Visual Studio for Desktop, Visual Studio for Web, Visual Studio Code, etc.) and each version has a different set of project templates. Anyhow, the problem I'm having is that I'm creating an ASP.NET MVC application through Visual Studio Web 2013 and I want it to be supported by a Windows Service that is started in my App_Start(). The problem of course is that when I read the instructions on https://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx there is no Windows Service template on Visual C# when I try to add a new project to my solution.
I understand your web endpoint will be dependent on a Windows Servie, and you want to author that windows service as part of your solution.
Setting aside that VS.net 2015 Community Edition rolls up all the functionality you need. You dont need the project template specifically to create a windows service. It just automatically adds some references and templates into your project. All project templates in VS .net rely on the .net framework - and that isn't any different between one installation and another of VS.net.
In practise you can code a windows service written for .net in Notepad and just call the CSC compiler manually - the version of VS.net just adds some ease-of-use.
There is a set of instructions here https://msdn.microsoft.com/en-us/library/9k985bc9(v=vs.110).aspx from Microsoft which include specific instructions on how to make a windows service without a template.
All over the internet and even here on SO, it is suggested to add a GUID to the project file ProjectType list of GUIDs if the scaffolding menu options for creating an MVC controller are missing. It's also not even an available template when just doing a plain "add item".
Here's where that's mentioned on SO:
Context menu to Add Controller/View missing
So I add that GUID then reload the project at which point Visual Studio decides to remove that it automatically without any notifications. It's just annoying not having the scaffolding for MVC controllers although I know I can create them manually. I do have the scaffolding for Web API controllers as well as MVC views. In the web project I'm using MVC 4 and Web API 2.2.
This is happening on a fully updated VS2012 with web tools 2013.1 install as well as a fully updated VS2013. However, on a colleagues VS2012 install adding the GUID works and reloading the project doesn't remove it.
The only thing I can think of is that on my VS2012 install I have MVC 5 and Web API 2.2 support installed (I think through web tools 2013.1?) and that's causing some sort of compatibility issue with VS.
Why is this happening and how do I fix it?
Here's a screen capture of some of the .NET things I have installed if it helps:
There is no need to add that Project Type GUID. This is only a workaround, but it will be removed automatically if you open the project on a machine having ASP.NET and Web Tools 2013 for Visual Studio 2012 installed.
So, in order to fix your machine, go to the URL at http://www.microsoft.com/en-us/download/details.aspx?id=41532 and make sure you install both "ASP.NET and Web Tools 2013.1 for Visual Studio 2012" and "ASP.NET and Web Frameworks 2013.1 - Visual Studio 2012":
After installation you should have these both in your installed programs list:
For more details you can check this URL: http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx