C# revert to previous version [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
My developer did not save the stable version of C# application( lets say v12) that we are developing. Now after bunch of enhancements we are at V20, but the application has become crap at v20. So I asked the developer to revert back to v12, but the developer says he cant as he did not save that version. Fortunately he made a .dll file of v12 to test. So I asked him to de-compile v12 dll and revert the code by looking at decompiled code as reference.Despite couple of attempts he was not able to restore and recreate stable v12.
Can someone please advise if there is a way in C# to revert to previous version ?
My application is total mess and the developer just cant fix it . I am really frustrated and concerned that months of development work could go to waste
I am not sure if he is taking me for a ride or genuinely there is no way to revert to previous version.
ps: I do not have any coding background.
Thank you in advance.

This has nothing to do with C#. Good development practice is to use a version control system like SVN, Git, Mercurial etc. Reverting any previous versions is not a problem when using a VCS.
If your "developer" did not do this but just keeps a single set of files for developing, there is no way of reverting. Decompilation of the .dll and start development from there is a poor choice.

Related

C# XNA and monogame. Is it worth it? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've learned I can make C# with XNA compatable with Mac/Linux through monogame but monogame is a seperately developed from C# so noone knows if they'll keep up with C#'s development?
Is it worth the risk to go with C# or should I play it safe and program in Java for crossplatform compatability?
Depends on the context in which you're developing:
MonoGame supports XNA 4, so if you're happy sticking with XNA 4 long-term then you're fine.
The two languages themselves have various advantages and disadvantages, e.g. see http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java. There's mileage in going with the one that serves your needs better now, unless you have reason to believe you'll need to keep up-to-date with the latest XNA and maintain your game over time.
Portability is a good thing (I'm generally in favour), but it's not the be all and end all. Look carefully at whether you actually need your game to be portable.
Also:
Are you working with others? Which language do they know better? What's their view?
Do you need to recruit/find more people who have experience with one language or the other? Are there more of one or the other in your vicinity?

How to use command prompts to compile code? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Alright, I've been spoiled enough already by IDEs, and I want to learn how to use the prompt to compile code.
Where can I find good learning material, me being completely oblivious to the matter? To be more specific, I'd like to know how to use C#'s csc.exe fully, though I hope that the knowledge will be appliable to other compilers as well.
Most compilers (as well other command line tools) provide help by using "/?" option - read it and in most cases it is enough to get simple code compiled.
For more real cases use project files
*.csproj for C#/ *.vbproj for VB.Net , use MSBuild to build. You already have them if you ever created project in VS.
makefiles for many other compilers

Create Installer out of .exe file [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I let the Crypto Obfuscator run over my program and i got an .exe file with all DLLs and everything in it. Thats really great but i need to create an installer out of it.
It should cost no time and have a graphical UI!
Whats the best (free) way to do this?
Are there any programs?
There are a few solutions:
Inno Setup and NSIS are popular free and open source scripted installer creators.
If you prefer having a graphical interface, the free InstallSimple and Clickteam's Install Creator are common choices.
For more alternatives, Wikipedia has a page entitled "List of installation software" providing a decent overview of what's available.
(Sorry about the lack of hyperlinks - the site's spam prevention system won't allow me to post more.)
Its in Visual Studio :)
http://msdn.microsoft.com/en-us/library/2kt85ked.aspx
You can use Nullsoft Scriptable Install System

What are the gotchas to ClickOnce deployment? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Due to deployment issues (http://stackoverflow.com/questions/11194459/is-windows-afraid-of-its-own-shadow-and-how-can-i-determine-which-ancillary-fil), I'm considering trying a Click Once deployment of my C# app. This is for deploying to a drive/folder on the network to which all users here where I work have access. Are there any caveats or gotchas regarding this?
The clickonce community resource kit on this page includes a pdf with a lot of good information about clickonce deployment. It's become quite difficult to find lately as it's getting long in the tooth, but I think it still has some good stuff.
I maintained a click once application for a couple of years and as far as I know you can't change the install location (it goes into the user's AppData folder). But if the only reason you were wanting to deploy it to a network share was because of access this shouldn't be a problem. Couple of gotchas we ran into:
Don't forget to disable the "require signed security cert" option. Totally forgot about this then couldn't figure out why a year later all our machines stopped updating!
Check the ApplicationDeployment.CurrentDeployment.DataDirectory for items set to "Copy To Output Directory"

Parsing C# Script into Java [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a way to easily read in a C# file and place it into a Java Object for database storage (storing the class name, functions, variables, etc).
I'm making a Hierarchical State Machine AI Building Tool for a game I'm creating and need to be able to import an existing C# file and store it in a database for retrieval in the future.
Does anyone know of any preexisting libraries for parsing C# files? Something similar to JavaParser?
Thanks everyone!
EDIT: This needs to be part of my Java Project. I'll be loading in the C# files through my Java Application and saving it into my db4o database.
You could use Roslyn, but it would be a bit of work: http://msdn.microsoft.com/en-US/roslyn
Roslyn is only in Preview, by the way. Microsoft hasn't said when the actual release will be out.
This is a C# library. You will need to do the actual parsing with a C# program using Roslyn.
This page talks about an IL to Java byte code compiler called grasshopper, but it doesn't seem to be there anymore. Maybe you could have done that and use reflection after loading the compilates, not sure where that leaves the code itself, if you need that as well.

Categories