I had successfully built the CEF with proprietary_codecs enabled, but not getting any way to use that inside my Visual Studio project.
Below is my binary_distrib structure. I just made x86 Debug-build
Currently in my Visual Studio (WPF C# Project) I'm using NuGet for CEFSharp, how I can replace the cef binary of nuget with my own built?
I need it cause by default CEFSharp not support any video codec so I needa use my custom built
I am more familiar with nuget. Not sure your issue is related to nuget. As a suggestion, you should use some scripts,especially, automate-git.py command-line arguments
And also do not forget to use the system environments to include them.
You can check this similar issue and this document.
Besides, if this do not help, please contact with CEF Forum.
Well we are using the CefSharp windows forms. We also replace CEF build to enable proprietary_codecs.
After you build your CEF and you must make sure you are building a matching version for the nuget, you should get the following files (some are optional) from the folder (\chromium_git\chromium\src\out\Debug_GN_x86) ..
locales folder
swiftshader folder
cef.pak
cef_100_percent.pak
cef_200_percent.pak
cef_extensions.pak
chrome_elf.dll
d3dcompiler_47.dll
devtools_resources.pak
icudtl.dat
libcef.dll
libEGL.dll
libGLESv2.dll
snapshot_blob.bin
v8_context_snapshot.bin
Copy these files to your application output folder which will replace the files from the nuget.
For our case, we have copied these files to a folder next to our project and it is included in our git repository, and in visual studio we use after build events to copy the files after each build.
Related
I am trying to install the Discord SDK for my C # console project for the sake of a test, but I am failing.
I have very little interaction with Visual Studio, with which I write the code, so please help with installing the SDK. I try to do everything according to what was said below, but perhaps I do not fully understand the sequence:
Open up that SDK zip that you downloaded.
Create a folder in your project directory called DiscordGameSDK and
copy the contents of the csharp/ folder to it
Build your solution then place the .dll in the directory of the .exe
(either x86 or x86_64 version depending on your compile platform).
If you compile for Any CPU you may need to perform additional
wrapping around DLL importing (like setting the DLL directory
dynamically) to make sure you load the correct DLL.
https://discord.com/developers/docs/game-sdk/sdk-starter-guide
I don't quite understand the third line of actions related to the solution, dll and exe files
Thanks in advance!
Since I'm writing in VS Code, I created a Discord Game SDK folder in my console project and moved all the files from the csharp folder to the DiscordGameSDK folder. After that, I compiled the project and transferred all the files from the lib folder to the bin/Debug/net6.0 folder
Visual Studio should work the same way. (Not sure)
enter image description here
I'm on a new PC and I wanted to do a Coding Project. I wanted to code a Console App that uses your Clipboard.
I searched on how to do that and got the answer that I should use System.Windows.Forms. But if I want to add a Project Reference, it doesn't show up the tab "Assemblies". I installed every version of .net core and framework. I just can't add a project reference. In the installation of VS I had not much Drive Space left, so I only checked the option .NET desktop development.
You have to Browse and include the file System.Windows.Forms.dll manually.
In my case, that file is in the following folder:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2
I am building a Xamarin app in Visual Studio, but am having problems with the source control, which I think is because I don't have a nuget.config file.
Firstly, do I need one per solution or one for the whole project, or alternatively just on in the PCL etc.
Secondly (the main question), is it possible auto-generate these files based on the nugets you currently have installed? Also, when these are updated, is it possible to keep the nuget.config file up to date?
Update:
In Visual Studio the Manage NuGet packages for Solution option which was present in past versions is not displayed for my project, not sure if this is the software version or the projects configuration.
Previously I have been using this method to build msi's on our tfs-server. Now I have upgraded to wix 3.10 and I can no longer find a wix.targets file. I also cannot find any information pointing out why it has been removed.
Does anyone know if this approach has been deprecated, and if so, what is the preferred method to build on TFS?
Do I just need to change the wix 3.8 targets file?
edit:
I found a wix.ca.targets file in the SDK folder, but it does not seem to be quite the same. At least it does not work out of the box for me.
The current documentation is here: http://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html.
Wix.targets ships with WiX v3.10. It's installed to C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x (on a 64-bit system) and available in wix310-binaries.zip in the bin subdirectory.
I plan to use Sublime Text 2 as my code source editor for C#/Java projects and I don't want to install Visual Studio, so can I compile C# project from CLI?
MSBuild is the build system that Visual Studio uses - you can use it directly with solution and project files as they are msbuild files.
It comes with the .NET redistributable downloads.
Note that for many types of solutions you will need to install auxiliary tools (for example resgen if you have any resource generation happening).
Basically, you can use csc.exe tool, located in c:\Windows\Microsoft.NET\Framework\framework_version\ to compile source files(C#) into executables.
You can create your custom scipt using it and run it to get exe or dll.
VS is way more then wrapper for compiler :)
You can configure VS to open files with external tools.
Just right click file in solution explorer and choose Open With... Then specify path to your favourite editor and set it as default.
The only "serious" option left is http://monodevelop.com/
You can use NANT to do so. But you need to have installed the "Windows SDK".