This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I add System.Web as a reference if I cant find it in the list of references?
I am developing wpf application.
I am using one of the system.web class called HttpUtility.
I am not able to add the reference.
Thank you.
You can adjust your Target Framework to .NET Framework 4.
Related
This question already has answers here:
Does the new SvgImageSource class designed for UWP can be used in WPF project
(2 answers)
Closed 4 years ago.
I am trying to write a WPF application and I require a function in the Windows.UI.Xaml.Media.Imaging namespace. I have tried adding a reference in the Reference Manager of Visual Studio. I have looked in Nuget package manager. I just can't seem to find it anywhere. Can someone guide me, please?
I believe the Windows.UI namespaces are only valid for UWP apps and not WPF apps.
You don't say what you're doing exactly but you can now use uwp in wpf.
There are some wrapped controls and there's "xaml islands".
https://blogs.windows.com/buildingapps/2018/11/02/xaml-islands-a-deep-dive-part-1/
https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls
This question already has answers here:
System.ServiceModel not found in .NET Core project
(4 answers)
Closed 4 years ago.
I recently started converting an ASP.NET web application to ASP.NET Core.
I was earlier making use of System.ServiceModel for WS2007HttpBinding and System.IdentityModel, however in ASP.NET Core I get the following error:
Could not load file or assembly System.ServiceModel
Is System.ServiceModel deprecated for ASP.NET Core or is there an alternative workaround for it?
You can download it from NuGet the specific package if you are just trying to reference the WS2007HttpBinding
This question already has answers here:
How to access the stored credentials (PasswordVault?) on Win7 and Win8?
(3 answers)
Closed 5 years ago.
how do I install Windows.Security.Credentials into VS 2017? I've looked everywhere and i can't find a thing. I cant add it through 'add reference'.
Thanks for any help.
Windows.Security.Credentials class avilible only in WinRT based projects type. For example in WindowsRuntimeComponent. You can't access to it from WinForms or Console project.
This question already has answers here:
Edit .NET assembly and recompile
(3 answers)
Closed 7 years ago.
I have used many decompilers but have too little experience to understand where it is that I can edit the c# code of specific objects within the DLL. Is it possible to simply edit the C# code and save the changes? If so how could I go about doing this?
TL:DR
How do I edit C# code inside a DLL that I do not have the source code for?
You can edit & patch .NET DLL/EXE with https://github.com/0xd4d/dnSpy
Worked perfectly well for me.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to mix .cs (C#) and .fs (F#) files in a single Visual Studio Windows Console Project? (.NET)
I have a c# class library project. What is the best way to get f# files working in the same project?
You can't. You'd need to create these as separate projects. It might however be possible to merge to create a single assembly on build using ILMerge.