I have a SDK style project in latest version of Visual Studio 2019 (with Windows Communication Foundation component installed). But I don't have the possibility to add a WCF reference to my project, it's just not visible.
I need the following item in red circle:
Has anyone any idea, why I don't have this item in my Visual Studio?
More info: I'm working with .NET Framework 4.8
As you can see, it's not visible on my machine:
To make it more clear: It's not possible to choose WCF Web Service Reference Provider in Connected Services:
You try to directly right-click the project to add, see if this post can help you find a solution
How to "Add Service Reference" in .NET Standard project
You need this in your project file:
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
It enables the Connected Services > Add Service Reference
Related
I would like to create a new F# Web ASPNET (not Core) Application using the MSBuild based legacy project format, not the SDK project. In Visual Studio 2019, the only available option for this project type is C#. I've attempted to reverse engineer the project setup by creating a new F# class library and modify the ProjectTypeGuids.
The C# Web Application uses the following project type GUIDs
349c5851-65df-11da-9384-00065b846f21 - ASP.NET MVC 5
fae04ec0-301f-11d3-bf4b-00c04f79efbc - C#
On a basic F# .NET Framework class library, I attempted to add the ASP.NET and F# project type guids to the project.
<ProjectTypeGuids>{349C5851-65DF-11DA-9384-00065B846F21};{F2A71F9B-5D33-465A-A702-920D77279786}</ProjectTypeGuids>
This succeeded in adding the web configuration to the project properties, but now I am unable to add any items to the project at all. It looks like in the past you needed to associate the right language templates with the project guid in the registry editor (see this link)
These entries don't appear to be anywhere that I can see in the registry, for any installed version of VS (which at this point is just 2017 and 2019). How can I enable F# item templates for my F# web application?
While not exactly an answer to the question, I think the pain of trying to do this is likely proof that you SHOULDN'T do this. In the end my approach will be to simply implement the Web Application in C#, while keeping as much code as possible in F# targeting netstandard.
When I create a new Service Fabric Application in Visual Studio 2019 (i.e. the project containing the .sfproj file, not an individual service), I can't select .NET Core as the framework for the project. I only get to choose between different versions of .NET Framework. Is this expected or does it have anything to do with my setup? I've migrated all the other projects in the service fabric solution to .NET Core, but I can't migrate the .sfproj project. Although not a huge problem, it would be nice to get rid of .NET Framework entirely.
Steps to reproduce: File > New > Project > Search for and select "Service Fabric Application" > Next
As JayMee points out in the comments, the first selection is for the fabric application and the subsequent selection is for the fabric service. These create two projects in your solution, using sfproj and csproj files, respectively. I chose .NET Framework 4.8 for my app and .NET Core 3.1 for my service.
Note that even though it's called a "service", it is also an application, complete with Program.cs, hence netcoreapp3.1 instead of something like netstandard for a library (this surprised me).
Note also that currently (VS 16.11.2) the app project sfproj file it creates is an old Framework style project file, not a new SDK style project file.
I have a Silverlight 5 app that I need to do maintenance work on. I'd like to avoid a VM.
With the release of .Net Framework 4.6.2 (in preview right now) this bug has been fixed, so it should be possible on my Win 10 machine. I have VS2012 installed along with the WCF RIA Services V1.0 SP1 (and Toolkit) plus the Silverlight 5 SDK. The project builds and runs in VS2012...
But within VS2012 I'm missing the "Add New Domain Service Class" wizard, which I need for some comparative troubleshooting. According to this answer and this link the template was removed in VS2013 and VS2015, both of which I also have installed for other projects.
How can I get the "Add New Domain Service Class" wizard back in VS2012?
LightSwitch doesn't require much of the classes and projects that are created as part of the Domain Service Class Library template. Instead you can just:
Create a Class Library project
Add a reference to System.ServiceModel.DomainServices.Server assembly
Make your class inherit from the DomainService class found in the System.ServiceModel.DomainServices.Server namespace.
for more information Creating a WCF RIA Service for Visual Studio LightSwitch 2013-2015
I am trying to go through the example at http://msdn.microsoft.com/en-us/library/aa719643(VS.71).aspx
Visual studio 2010 does not recognize System.Web.SessionState and various others.
I tried adding a .net reference to them but they do not exist on my system. I have .Net 4 installed.
Why would these examples use namespaces that are not recognized by visual studio?
alt text http://www.phantix-llc.com/system.web.sessionstate_missing.jpg
System.Web isn't shown because VS2010 defaults to using the .NET4 Client Profile which doesn't include it. (You can see the "Filtered for .NET Framework 4 Client Profile" text at the top of the Add Reference dialog.)
You need to change your project's properties so that it targets the full version of the framework, then you'll be able to select System.Web.
System.Web.SessionState (and the others shown unrecognized) are in System.Web.dll. Verify that reference exists.
This may be a silly question, but I can't find the web service application template when I try to create a new project.
You propably want a WCF Service Project: New Project -> Visual C# (or Visual Basic) -> WCF Service Application.
I've just struggled with this one myself.
It's still there buried in specific options.
New Project -> Visual C# (or VB) -> Web (important)
Make sure the .NET Framework Filter is set to 3.5 or lower
The project template is called ASP.Net Web Service Application
Counter intuitively it doesn't show up if you select the broader menu: New Project -> Visual C#
Do a full install on ultimate; it is still there.