How to install Windows.Security.Credentials; C# .NET VS 2017 [duplicate] - c#

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.

Related

Where can I find the Windows.UI.Xaml.Media.Imaging namespace? [duplicate]

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

Excel c# in computers Without visual basic [duplicate]

This question already has answers here:
How to use Microsoft.Office.Interop.Excel on a machine without installed MS Office?
(4 answers)
Closed 6 years ago.
i made a project in c# that use excel, in my computer and other computers with visual basic the project works but in other computer when i Click the buttom Who start Work with excel i get exeption.
Am i need to install some driver or something? Tnx
In Client system must have MS Office installed.

Visual C# to Visual C++ [duplicate]

This question already has answers here:
How to use c# Dll in vc++?
(3 answers)
Closed 9 years ago.
I need to use dlls, headers and functions from a Visual C# project in a Visual C++ project.
I tried to add the dlls via "Add References" but I keep getting this error...
Caching metadata information for e:\linha_3_os179\indutron_opc\treiberdlls\elabo.devices.g_series.deviceplugin.dll
Any suggetions?
Thanks!
I would try to expose the c# code as COM objects and then use COM from c to call them

Find Microsoft Windows Installer 3.1 or later [duplicate]

This question already has answers here:
How do I check if Windows Installer 3.1 or higher is installed?
(5 answers)
Closed 9 years ago.
How to find using C# Microsoft Windows Installer 3.1 or later is installed in machine?Can anyone help me how to do this using C#.
Thanks
You can check to see if this line returns a version number higher than "3.0.1" :
return System.Diagnostics.FileVersionInfo.GetVersionInfo(#"C:\Windows\System32\msi.dll").ProductVersion;

How to Compile projects in another console application [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Place all output dlls in common directory from Visual Studio
I have a solution which is having 15 projects.
Now i want to compile all these project and save dlls into another location using another console application.
MSBuild or Nant

Categories