How can I change name of (IProject) in Roslyn?
I found only the extension method UpdateAssemblyName(), but it do something else (of course).
Roslyn doesn't currently offer a way to rename a project, sorry.
Related
I want to use Xcode for C/C++ project.
I don't care about build/compilation, all i want is to use it as editor.
Needs:
- Find symobol , References , callers etc
I've opened a console project, i can search for a symbol in the same file but nothing else. (for example, right click + jump to definition gives me a question mark ('?').
Any pointer to what needs to be done ?
Thanks,
Shaul.
From my experience, XCode is not designed to work well with C++. For example, you'll find that simple refactoring, such as renaming a function and automatically renaming usages, doesn't work well with XCode. I find AppCode works a lot better for (Obj)C++ development. Worth a look.
Thare are two approches
You need to create a library of your c++ project and add that library in your project
Add C++ project in your xcode and make it build as target source
let me now if you need a walkthrough
Ok, I found the solution.
When adding files to the Xcode project, on the bottom , need to click 'Options' and then choose 'Create groups' instead 'Create folder references'
This options will add all the sources and headers to 'Compile sources' and 'Headers' (Under 'Build Phases')
I'd like to create a Makefile for a moderately sized C++ project (~110 .cpp and .h files) that was created in Xcode. I don't own a mac, so I can't just go into xcode and export a Makefile.
From my understanding of using Makefiles for simpler projects, I could go through and create a target in my Makefile for each .cpp file, including its prerequisites... but that would require manually looking through each file and sorting out what its dependencies are.
It's my understanding that autoconf is a good tool for this sort of problem, but I haven't been able to figure out how to set it up and I'm not even sure that it's the right tool for the job. So before I go even further down this rabbit hole --
What is the best way to create a Makefile for an existing project without one?
It is rather subjective as to the best tool. Perhaps look at SCONS or gradle to compare for your particular needs.
I think Pbxbuild may help you.
Pbxbuild (not to be confused with the OS X tool of the same name) is used to take Xcode project files and build the code. It does this by creating GNUmakefiles, and using Make to build those.
Any build system (generator) will require some learning on your part. I would suggest using CMake, if you do not mind that CMake will be required wherever anybody tries to build your source. Otherwise I would suggest using the Autoconf/Automake/Libtool combo.
I am currently developing a software with some partners. We are using Codeblocks to manage the project, and are likely going to be using SVN as a versioning tool.
However, as I already used SVN to work on a report with latex, I'm aware that some files are completely unnecessary.
My question is therefore a little bit broad. How do you think we should proceed using the SVN repository ?
Should we put the C::B project directory directly inside the SVN repository ? (I assume we will have some problem with the project options, as the library are not in the same place for everyone)
Should we put only the source files in the directory and "link" the source files to a codeblocks project outside the SVN repository ? This solution may allow other IDE to be used with the same source files, right ?
Best regards,
Al_th
i think you shouldnt stick to one IDE. Better solution is to create universal build system like Makefile or Cmake. With MakeFile you can easy import project to all decent IDE's.( more of them even support to download project from remote repository)
With universal build system you can use it with your own favourite IDE or even compiler.
I would also consider to change C::B to kdevelop it is fully suporrted with SVN/GIT/Cmake/Make. Also there is support for c++11x.
Isnt it more related to programmers than c++ stackoverflow?
;) Yeah. I also have C++ in my solution.
How do I add a custom dictionary there? There is no tool for an includes file, as well as no way to tell it the type is CustomDictionary.
THe advice and approach shown in http://msdn.microsoft.com/en-us/library/bb514188(v=VS.100).aspx is not usable for C++ projects.
For VS2010, you can set the dictionary by editing your .vcxproj file and pasting this:
<ItemGroup>
<CodeAnalysisDictionary Include="c:\temp\mydictionary.xml" />
</ItemGroup>
Modify the path to your dictionary.
To make this a permanent setting for all your C++ projects, navigate to c:\program files\msbuild\microsoft.cpp\v4.0 and edit Microsoft.Cpp.props, pasting the above (make a backup please).
To verify that the change is effective, use Tools + Options, Projects and Solutions, Build and Run, MSBuild project build log file verbosity = Diagnostic. Rebuild your project, look in the .log file and verify that fxcopcmd.exe got started with the /dictionary option.
Both approaches worked well on my machine.
To get a CustomDictionary working with C++ you will have to edit the project file manually as described here.
I recently asked a question about importing from a list of source/header files in Eclipse
I haven't found a good solution to this, so I thought I'd check out other IDEs. I want an IDE that does not need to "own" everything from a top directory and down. When creating a new project I want to have a text file that lists source/header files (autogenerated by the build tool), and have the IDE create a project with those files. The only IDE I know of that does this is SlickEdit, which is great, but also rather expensive. Do you know of any other IDEs that have this feature.
Eclipse wants to own everything in the directory I pointed it to, and I haven't found a way to remove subfolders afterwards (to exclude them from search, indexing and annoying me).
I think CMake can be helpful for you.
Emacs does all this, and more. The desktop feature lets you store a set of files to load and save in a working directory, and the Emacs Code Browser (ECB) extension has support for browsing files and classes, and managing projects. It doesn't own anything, Emacs just gives you lots of tools to manipulate text in godly ways. Along with ECB, SpeedBar and a few other extensions, CEDET is an Emacs "meta"-extension which turns the venerable editor into an IDE. It even does UML!
Emacs IDE: CEDET
Code::Blocks can do this for you.