My code is built in NET Framework 4.7.2, it uses two .dlls siticone.dll + windowsinput.dll.
How do I let my code be used by others and include these .dlls. I am highly certain this is caused by those .dlls, as when I make a new WinForms app my friends can open that code but not my main one that has these .dlls!
P.S: on opening the code it sits in Task manager but does not physically open
What worked for me: Costura Fody, a NuGet that includes .dlls to your execute for you.
You can also use "Embed Interop Files" but after some digging and testing myself I found it didn't work on certain versions and lots of people saying to turn it off.
Another error I had with Costura.Fody which I figured out was you may need to remove the .dlls from your references and add them back in afterwards.
PS. You can also use an installer (like inno setup) if you like but I find it much simpler having it all inside of the execute. Hope this helps like everyone has helped me :)
I've inherited a C# program that makes extensive use of widgets from ninerays.win.widgets.dll. The solution builds fine and even runs under mono in a Armbian Linux environment.
However I have to make modifications to this program and I have no documentation regarding this DLL. I wonder if anything is out there. Also when I attempt to open some of the panels in Designer I'm seeing this error:
I wonder if part of the problem is the NineRays dll file.
I would appreciate any documentation on this dll file and any suggestion on opening panels in designer.
this is not sponsored!
get dotpeek and let it create some documentation for you :)
https://www.jetbrains.com/decompiler/
I am trying to create installer using InstallShield and have requirement to execute some code during the installation process. Earlier I was using VS 2015 setup extension to create MSI but due to some advance needs in MSI we are planning to migrated to InstallShield and code that we were executing in onBeforeInstall / onAfterInstall of ServiceInstall also needs to be executed and as per my understanding we need to create CustomActions and for that requirement is to create functions and put them in dll file.
I tried to look into documents of InstallShield but wasn't able to find good way or example code that i can start with to write such code. I prefer to write in C# it will be helpful if some one can guide me to write function to attach with custom actions.
Help Material: The documentation included with InstallShield should have good information to get going? Installscript Reference. Also check the Installshield installation folder under Program Files - I think there are some samples there.
Installsite.org: Setup consultant Stefan Kruger's installsite.org has a number of coding examples for custom actions.
Github.com: You can search github.com to find samples of just about anything. Sample search for MsiGetProperty (used by most Installscripts).
Custom Actions: Managed code (Dot Net) has a number of technical problems for large scale package distribution. It is recommended that you use Installshield's proprietary Installscript language or straight up C++ (minimal dependency, static linking when possible). I don't have a nice summary of managed code problems, only this half-mad answer that was written some time ago.
I am trying to make my Web API work with Google Protobuff and I tried to follow the instructions in Github but I cannot find the way how to compile protobuff file so it will create c# files for my project. Can someone please tell me instructions in order to do that.
Thank you all in advance.
Assuming that by "protobuff file" you mean a .proto file, the tool you're looking for is protoc, and it ships in the release.
Alternatively, both protoc and protogen are available for online usage at https://protogen.marcgravell.com - protogen is protobuf-net's equivalent tooling, for an independent re-implementation.
There may also be MSBuild/CLI tools available separately via a protobuf nuget package, I'm not sure.
It would be nice if it did both a list of methods to choose from and the list of potential input parameters. This was done for powershell and I was curious if there was any similar functionality implemented for emacs or vim?
Clarification:
A fellow developer I work with wants to use either vim or emacs for the low overhead without running visual studio. In essence he would like to be able to write tests, edit code in emacs or vim then just run NANT scripts to compile the code and run the tests. The only feature from Visual Studio he wants is code completion. The rest he can live without for 98-99 percent of the time.
You can use a vim editor emulator for Visual Studio.
http://www.viemu.com/
I haven't come across an emacs mode that would offer code completion suggestions based on "knowledge" of the API(s) that the user's environment is offering. To a lot of people this is an issue which prevents them from attempting to use Emacs or VIM when working with rich/large/unwieldy (delete as applicable) APIs.
However I am wondering how much of a problem this would present during day-to-day work. I've been using Emacs with C#-mode to crank out quite a lot of C# code. I also tend to run dabbrev-mode or pabbrev-mode, which tends to take care of the more common function and variable names I tend to use. To my eternal shame I have to admit that I tend to have a browser open on the MSDN website to look up the rest - those APIs that I don't use often enough to remember. Another potential helper that your colleague might want to look into is icicles, which may also be a step in the right direction. Neither of these libraries however will offer the full breadth of completion support that something the like Visual Studio IDE will offer. I'd see this as part of the trade-off when using a more efficient editor.
As an aside, if your colleague is working in a team and other members working on the same project are using Visual Studio, MSBuild might offer a better solution for building outside of VS than Nant as MSBuild reads the same solution and project files that VS uses (in fact a lot of the build work in VS2008 is handled by MSBuild). The syntax isn't too far away from Nant and with the community tasks added (which gives you NUnit integration etc) and it'll ensure that everybody is using very similar mechanisms to build the executables.
The furthest along completion I've seen for C# is at this blog, specifically at this post. (Blog link included for context and other Emacs posts.)
If you can live with dumb completion, you might be able to roll your own with tags and tag completion.
A previous stack on the same issue.
Your source code should be processed through the CEDET framework: http://cedet.sourceforge.net/
Then either use the example UIs bundled with cedet or else try any of these two:
- company-mode: http://nschum.de/src/emacs/company-mode
- completion-ui: http://www.dr-qubit.org/emacs.php
both supporting CEDET as a completion search backend.
apa!
for emacs and C# you can look at this tool : http://code.google.com/p/idebridge/
OmniSharp provides contextual intellisense for C# in vim.
Some of the suggestions in Eclipse Style Function Completions in Emacs for C, C++ and JAVA? may be relevant for emacs.
Not c# specific, but still.
I have found the http://code.google.com/p/csense this is an emacs c# intellisense/code sense. I found it from this blog post http://osdir.com/ml/emacs.sources/2007-11/msg00018.html, this may be close to the answer I was looking for.
After looking further it has not been updated since November 2007, looks stale to me.
For Vim, you can install insenvim. It support for the C# code completion.
After download the plugin you could install the installation file or install manually by following steps:
Copy the file cs_vis.vim into your $VIM\vimfiles\ftplugin directory.
Copy the file csft.dll into your $VIM_INTELLISENSE directory.
Copy CSVimHelper.dll,reg.bat to your $VIM_INTELLISENSE directory.
Run reg.bat to register the dlls. You need to set the directory gacutil.exe
in the path. You need the latest version of .NET SDK.