I am having custom fonts(.ttf file) in my WPF application. I am able to use those fonts in my application but now I need to install these fonts in system. How do I install custom fonts into machine from my WPF C# code?
Related
I found that the windows visual studio extension is targeted to .net framework and only .net framework (which seems not clearly described in the docs?), after switching our custom mono debugger extension to .net 7.0, with framework not compatible (between vsix project's .net framework 4.8 and debugger project's .net 7.0) error when building the vsix project.
If I switch the debugger project target back to .net framework 4.8 then I can build the extension along with the debugger and create a vsix bundle them togeter successfully.
I tried the previewing visual studio extensibility tools: the out-of-process solution, but the out-of-process way seems not have access to the dte object, thus no way to send the debug adapter launch command. If I use the in-process solution, then we head back to the .net framework target :(
The mono debugger extension is a "3rd party executable file" that launched by visual studio debug adapter. If I manually paste the .net 7.0 version mono debugger to the extension install location, the extension can still work with the debugger. I manage the debugger project and the vsix project within a solution is for easier project management only, in fact they are not referenced directly in code.
I switched our mono debugger project to .net 7.0 is for trying to upgrade our toolset to the newest unified framework (every other tool in our team are upgraded to .net 7.0).
TL;DR, how can we bundle a none .net framework targeted project along with a windows visual studio extension, which is targeted to .net framework only? Or how can we integrate/bundle/add built exe,dlls into the vsix container?
There are some solutions from other stackoverflow answers such as add dlls using vsixmanifest, but it can only add dll file, and the way it handle asset file seems not quite right, it just copy the dll to vsix project folder once, meaning it won't get updated when the dll's project rebuild.
Here I managed to bundle the files in a wonky way:
I create a publish folder under vsix project folder,
then copy the published debugger project file to it, add them as existing file to vsix project, and configure them as vsix content, copy to vsix,
then add a pre-build event for the vsix project, publishing our debugger project and output to this publish folder.
With process above, I can package the published file into vsix when trigger vsix project build.
For anyone have similar issue, you can have a try.
I am deploying my wpf exe file using VS 2019 setup project. I am using webview2 in my wpf and I am able to see the result however my client machine is not able get any result .
Is there any way apart from what is mentioned in webview runtime documents mentioned by Microsoft.
Any simple way to install webview while user is installing the wpf setup ?
You can refer Webview distribution
There are 2 way to get the root cause,
just check app.exe.Webview2 folder is generated in your exe folder path.
is webviewloder.dll is present or not ?
and if you want simple way to install the webview2 while installation then just download the microsoftWebviewSetup.exe and include the exe file in your custom action
steps:
create a setup project
in application folder add your wpf exe and webview2 exe
right click on project -> View -> custom action
open the custom action -> Install -> add the webView2.exe
run the setup.exe it will install the webviewruntime also
This is about WPF project with Dynamic module loading and navigation using prism. I am trying to figure out - how the WPF project loads shell module so that all related files such as Bootstrapper, catalog, etc. are initialized to register the modules (WPF projects) through catalog. This is required so we can use prism module loader.
More details below -
We are migrating a Silverlight project to a WPF project.
Silverlight Solution has following projects
MyProject.Web (aspx) with default.aspx which is initializing shell module ("I believe") by following code
<param name="source" value="ClientBin/ShellModule.xap" />
ShellModule Silverlight project with catalog.xaml which registers all Modularity:ModuleInfo and Bootstrapper.cs inheriting UnityBootstrapper which returns IModuleCatalog
Other Silverlight Module projects
I am trying to figure out how would WPF project achieve it without the MyProject.Web project and without a default.aspx
My very odd random guess - from App.xaml of Root project somehow?
WPF - https://prismlibrary.github.io/docs/wpf/legacy/Modules.html
Silverlight - https://www.wintellect.com/dynamic-module-loading-with-silverlight-navigation-using-prism/
I am using a drupal community theme, slightly customized as per requirement. I am facing problems when I am porting the theme with a distribution.
On installation that distribution does not load the custom theme, but downloads the theme from drupal community.
Please help.
Don't use Drush for that because Drush will fetch the files (modules, themes etc) from the online repositories.
Just follow the normal installation method. Download the installation profile, override the theme folder with your customized theme folder and then run the install.php through browser.
is there any .iso file available for installing silverlight [for developing silverlight Application not for running application]?
so i can install it when i am offline also.
i have just downloaded .iso file of VS2010Express but it doesn't comes with SilverLight?
Please help.
Are you looking for this installer? http://www.microsoft.com/download/en/details.aspx?id=18149
After the installation you will get new project types for silverlight