I'm using Costura.Fody to embed a bunch of references in my project into a sort of master-library to remove the need to reference every single library in my API. Costura.Fody output shows that the other parts of my library are being embedded, but when I reference the DLL the embedded namespaces aren't being shown, so dependent projects won't build.
Opening the DLL in a text editor shows that the embedded namespaces are in the DLL but can't be detected in Visual Studio...
I'm using the default Costura.Fody weavers setup. Any advice? Please?
That's not how Costura works. Costura embeds the other libraries into your main one, which means they're hidden if you only reference the main library.
To achieve the effect you want you're better off using a tool like ILMerge.
Related
While using VS (2010), I used to be able to add an image as a resource simply by going to the Resource view and then: Right click project > Add > Resource > Import.
I even asked a question about how to then load it: Loading an image from a resource embedded in a dll, but that changed for some reason.
Now when I try the same thing and save the .rc file, I get this message:
"The resource script FILE_PATH.rc was not created using Microsoft
Visual Studio. Comments, macros, preprocessor directives, and
conditionally included information may be modified and/or removed from
this file during the build process. Replace existing file?"
Even if I click "yes" (in order to just test things) then I get all kind of error messages at compile time:
ResourceCompile:
gen\firebreathWin.rc(8): error RC2144: PRIMARY
LANGUAGE ID not a number
gen\firebreathWin.rc(16): error RC2135: file not found VS_VERSION_INFO
etc...
I have two questions:
What is the correct way to add an image resource which will be added to the compiled plugin using CMake? I searched about it and couldn't find any helping information.
What can be the cause for this change in behavior? since I was able to use the same exact steps before and it worked.
Thanks.
First of all, I wouldn't do this; instead, I'd just put the file in the same directory as your DLL and use the path of DLL to find it.
That said, the "correct" way to do this would be to see what changes are made to the .rc file when you add it in the IDE, copy the .rc file from gen_templates/ in the root of the firebreath directory into your project, and then make those changes to your copy of the file. Any changes you make to the generated file will be overridden any time cmake is run again, which can happen any time your cmake files (CMakeLists.txt, *.cmake) change.
Is there a way to search all the file names in my project?
In Xcode the lens on the bottom searches through the names of all the files in the project and it's a very quick and intuitive way to navigate a project you are familiar with.
Is there something similar in Appcode?
The following text was found on the AppCode basic web site.. This practice will definitely helps you to find the files using AppCode IDE within your project.
When working on your own project, you often know which file or class you want to open and edit. The fastest way to do this is to use Go to Class... (Cmd+O) or Go to File... (Cmd+Shift+O).
e.g
You can also find excluded project files as well.
Please check this for more details.
My specific use case is with an Android project, but this isn't Android specific. I have an IntelliJ-IDEA project with several Android modules which have been localized. If I want to open the file strings.xml, I will pretty much always want the non-localized one (in res/values rather than res/values-fr or whatever). But when I hit <ctrl><shift><n> and type strings.xml, it shows all the 30-zillion localized files and in fact shows them before the non-localized one. I would like to figure out a way to give IntelliJ a hint as to which one I would want, or a way to filter out files from that dialog. Any ideas?
Seems there is a kind of workaround with directory exclusion
http://devnet.jetbrains.com/thread/283525
I have c++ code which uses GDAL libraries to do some operations in an image (like slope, aspect, hill shade etc). Now, I want to make a GUI in which I want to fetch an image from the directory. After that I want to apply operation on the image (assume as slope - c++ code) and then I should get the output.
Many people have suggested me to use Qt. I have built and installed Qt in my visual studio 2010 successfully.
Please help me how to proceed with the GUI. I have intermediate skills in C++ programing and new for GUI applications.
This is hard to put in an answer. There are a lot of tutorials out there including, for example, My First Qt GUI Application as well as other general Qt4 and Qt5 tutorials. Even on YouTube you will find a lot of videos such as Introduction to Qt C++ framework for Visual Studio (which uses Microsoft Visual Studios and Qt 5.4) and Qt Calculator GUI Tutorial Part 1 (which uses Apple's Xcode and Qt 5.7).
The main idea is that you use this software to create in a What You See Is What You Get (WYSIWYG) mode the GUI. Then you must play with the created file and classes.
I have solve the Issue. Thanks everyone who helped me. This is how i have done.
After successfully installing Qt with visual studio , create a new the Qt project and there you will find three files (.ui, .h, and .cpp ).
click on ui file , new window will be create where you can see the buttons and boxes .
make use of that as per the requirement and read a tutorial of QT for setting and using object names.
click on .h file , where you will create a call the functions by clicking the button class.
click on .cpp file , write your code in the class called in .h file.
compile and enjoy the solution :)
I have a vb.net project that has 2 exe's that get built as well as the installer. The two exe's share a bunch of common files. I do not want to have two copies of the common files or mess around with having build events that copy things around (if possible).
My method was to create two projects in the same folder and have them point to the files they needed. This appeared to work until I tried to compile both apps at which point I get an error in a file called Application.Designer.vb. It seems that project files create this file in their folder and when I have two solutions in the same folder they conflict.
So my next effort was to create the second project in it's own folder and just add the items as needed. The problem here is that VS2010 doesn't hold a link to a file in a different folder it copies the file to the new project folder.
What is the vs2010 way to get this done?
You were almost there when you created your second project. Rather than adding the files to the second project, you need to link them.
When you add them, VS copies the source file to the current project's directory.
When you link a file, it leaves it in its current location and just adds a reference to the file to your project. This means that you are operating with a single source file instead of multiple copies.
To link a file, choose Add Existing Item... menu item from the Project menu, select the file(s) that you want to link, and then click the dropdown arrow next to the Add button on the file dialog and select Add As Link.
We have class files that are shared this way among a half-dozen projects, including Win Forms, Silverlight, ASP.Net, Services, and PocketPC.
The easiest solution would be to shove all the common stuff into a common project, and simply reference that project from your other two solutions.
Solution A:
Project A
Project C
Solution B:
Project B
Project C
Just my recommendation anyway.