|
|
I am using MS VS .net. I have created a project and associated solution. I now want to take a snapshot of my current project before I move on with development in case I mess something up. I can't ficure out how to easily make a copy of the solution.
Any suggestions?
Brian
|
|
|
|
|
It's all file based, so for the simplest form of version control you can just make a copy of your solution's directory.
Charlie
if(!curlies){ return; }
|
|
|
|
|
I did make a backup. Then I tried to open the solution from the new directory and could not. Why couldn't I?
|
|
|
|
|
Did Visual Studio give you an error message? What happened when you tried to open the solution? Did the copy you made contain the .sln file as well as any related project directories?
The solution file (.sln) is just text, so you can open it in notepad and see what it contains. Among other things, it will specify the relative location of the projects in the solution. If any of the projects has an invalid path in the solution file, you'll get a message box in Visual Studio telling you it was unable to read the project file.
Charlie
if(!curlies){ return; }
|
|
|
|
|
The directory where the working files are located is in d: I copied all of the files into another directory on the same drive and called it xxx. Try to open the solution but VS can't even find it. It seems to want to look in a directory in C:/my documents/visual studio projects which seems to contain directories of solutions I have created. In each directory there exists one file. The file is called a vidual studio solution object. at the beginning of this file are the following lines
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DACISV2", "http://localhost/DACISV2/DACISV2.csproj", "{CA22A93D-314E-4550-AC4B-ED5AC663B311}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
First what is the aplhanumberic code FAE04.... Second if I simply duplicate this file and create it in a folder in the c dir that matches the copied solutions name (xxx) then edit the object to change the path to point to the new directiroy and file I can open the project BUT it doesn't work.....
This seems awfully complicated. Surely there must be a simple way to make a copy of a solution.
I really appreciate your assistance.
Brian
P.S. I never did find a .sln file!
|
|
|
|
|
brian55 wrote:
P.S. I never did find a .sln file!
The snippet you posted is from the .sln file. (Do you, by chance, have "Hide file extensions for known file types" selected in your folder options? I have never understood why this is the default, but this is usually one of the first things I change when I sit down at a new machine.)
The alpha-numeric string starting with "FAE04EC0" is a GUID (Globally Unique Identifier) representing a C# project file (.csproj). The second GUID (the one that starts with "CA22A93D", in your case) respresents the actual project (DACISV2).
I made the assumption (a bad practice, I know) that you were working with WinForms applications, but I see from what you posted that you're actually working with web apps. The location of the code files can vary depending on how you added them to the solution, but by default they'll be in C:\Inetpub\wwwroot\{ProjectName}. This will be different if you didn't go with the defaults when setting up IIS on your machine. You'd need to make a copy of those folders as well.
To restore the "backup", either replace the newer version with the saved version and go about your business or alter the saved solution file to point to the backups you made of the projects. You'd just change the path in the solution file to point to the new location. e.g., "http://localhost/Copy of DACISV2/DACISV2.csproj"
If you don't want to have to deal with all this stuff, there is a good source control tool called SourceGear Vault[^] that is free for single users. Using a source control system adds a certain amount of complexity itself, but it can also add a lot of flexibility when restoring a previous version.
Charlie
if(!curlies){ return; }
|
|
|
|
|
Hi all !
I have a RichTextBox control containing red-colored text "Hello world." and
I need to get (for example but not strongly !) the following html-page:
<html>
<body style="color:red">
Hello world.
</body>
</html>
Does FCL contain any classes and methods to solve my problem ?
Many thanks !
|
|
|
|
|
hi
i am working on a full screen app, and was wondering if there is any way of hiding the taskbar.
|
|
|
|
|
Yes, in the form that you want to fill the screen, handle the Load event inserting the following code:
this.FormBorderStyle = FormBorderStyle.None;
this.Location = new Point(0, 0);
this.Size = new Size(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height);
You may want to set the form's TopMost property to true as well.
Hope that helps.
Happy Programming and may God bless!
"Your coding practices might be buggy, but your code is always right."
Internet::WWW::CodeProject::bneacetp
N-Tech Productions
http://www.n-tp.com/
|
|
|
|
|
Hi
My company is hiring and I'm stuck with writing a meaninful set of questions so interviewers can ask the prospects about .NET and ASP.NET
This are Senior level Developers positions that will be in charge if developing from specs or sometimes without specs web-based and smart client applications.
On top of .NET they require amomg other things
- N-tier architecture
- component development
- UML and RUP
- Data modellling
- ORACLE
- PL/SQL
Any how , can someone point me to standards question that can ask to determine the level of knowledge on ASP.NET and .net in general.
Rodrigo
|
|
|
|
|
Hi,
Well a good start would be with the garbage collection. Ask them what is garbage collection, and the mechanics of it. Make sure u read about 1'st and 2nd generation garbage collection. this will help you understand and also compose some questions.
Also you can ask them about the .NET tools, such as ILASM-ILAssembler, ILDASM-ILDisassembler, and of course IL. IL is the bytecode of the framework. Any experienced developer would certainly know a bit about IL, Intermediate Language.
And for asp.net I would ask about security. Such as Forms.Authentication namespace, simply for the reason that if any developer has worked with asp.net they would definatly work with Asp.NET security namespaces. Also I would definatly get into the DataGrid control since its advanced and very powerful.
Maybe Class Libraries can fit in there too, and component development.
|
|
|
|
|
Anonymous wrote:
Well a good start would be with the garbage collection.
Why? There really isn't much to know other than to use Dispose if an object uses IDisposable, and implement IDisposable yourself if your class has member variables that use the IDisposable interface themselves.
Anonymous wrote:
ILASM-ILAssembler, ILDASM-ILDisassembler, and of course IL
Huh! What does that really get you? While the information could be useful there are a number of really great .NET developers I know that don't use IL or the ILAssembler/Disassembler.
Anonymous wrote:
And for asp.net I would ask about security.
Why stop there? What about security in Win Forms Applications? What about security when dealing with the database? Security is a huge topic and covers many areas.
Anonymous wrote:
Also I would definatly get into the DataGrid control since its advanced and very powerful.
Personally, I find that data grids are extremely poor. They are good for mocking up a quick prototype but they are cumbersome and difficult to change if you want to do anything more than simple grids.
Anonymous wrote:
Maybe Class Libraries can fit in there too
Are you talking about the .NET BCL (Base Class Library)? And you say "Maybe"!
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums Upcoming talk:
SELECT UserName, Password FROM Users
-- Getting unauthorised access to a SQL Server, and how to prevent it.
|
|
|
|
|
rpineda wrote:
My company is hiring and I'm stuck with writing a meaninful set of questions so interviewers can ask the prospects about .NET and ASP.NET
I would suggest the best policy would be to put someone technical on the interview panel rather than have someone non-technical ask the questions. A non-technical person will either only accept the answer as written down for them (the person may know the answer, just not express it in the same way) or could be bambozzled into accepting a false explanation.
I would say that the .NET Framework is so big that few people will know all of it in depth. Think about the projects you will need this programmer to work on and ask question in those area. If you find a test to ask prospective .NET developers make sure it asks questions that are relevant to the work you do. For example, you mention Oracle, so asking questions about classes in the System.Data.SqlClient namespace will be a bit pointless, but asking about System.Data.Oracle will be relevant.
You might try looking in books designed for the MCAD and MSCD courses as they often have sample exam question at the end of each chapter or at the back of the book.
I would say that the most important qualities of a good developer are willingness/eagerness to learn (information becomes old very quickly in IT), be a good logical thinker (this allows them to think through problems - especially ones they may not have encountered before).
Anyway, I hope this helps.
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums Upcoming talk:
SELECT UserName, Password FROM Users
-- Getting unauthorised access to a SQL Server, and how to prevent it.
|
|
|
|
|
Give them a notebook with VS.NET 2003 and access to the Internet, and ask them to write both a web application and a winforms application to query the pubs database for authors, and then show the books by the selected author. Give them an hour.
They may not complete, but you should be able to evaluate their knowledge of how to do multi-tiered apps, and how well they know some aspects of .NET. A faker will not be able to do anything in an hour, and a guru will impress the hell out of you.
my blog
|
|
|
|
|
Hi,
I have a multiple resultset returned by the stored procedure (4 select statements returning different values).
When I call SqlCommand's ExecuteReader on the following piece of code:
cn = new System.Data.SqlClient.SqlConnection(ConnectionString);<br />
<br />
cn.Open();<br />
<br />
SqlCommand cmd = new SqlCommand();<br />
cmd.Connection = cn;<br />
cmd.CommandText = "spResSupervisorSwitchboard";<br />
cmd.CommandType = CommandType.StoredProcedure;<br />
<br />
SqlDataReader rdr = cmd.ExecuteReader();<br />
<br />
while(rdr.Read()) <br />
{<br />
lblWaitingFirstEntry.Text = rdr[0].ToString();
}<br />
<br />
rdr.NextResult();
The connection is opened fine, the stored procedure name is correct, stored procedure returns values when executed in SQL Query Analyzer... but it doesn't work in my code.
Cheers
|
|
|
|
|
from what i see, code is not wrapped in a try catch block. you also don't close the connection, and rdr.NextResult is not needed since rdr.Read() enumerates through set in a DataReader. plus ur opening the connection before ur setting cmd fields.
try this
cn = new System.Data.SqlClient.SqlConnection(ConnectionString);
SqlCommand cmd = new SqlCommand();
cmd.Connection = cn;
cmd.CommandText = "spResSupervisorSwitchboard";
cmd.CommandType = CommandType.StoredProcedure;
try{
SqlDataReader rdr = cmd.ExecuteReader();
while(rdr.Read())
{
lblWaitingFirstEntry.Text = rdr[0].ToString();
}
}catch(SqlException ex)
{
lblWaitingFirstEntry.Text = ex.ToString();
}
finally
{
con.close();
}
|
|
|
|
|
hi, im a c# programmer, from yesterday , when im trying to create a new c# project im getting the message "operation could not be completed" ... but no problem when i try to create a vb.net project.. i m trying to solve but in vain.. if anyone familiar with this type of problem please let me know
thanks and regds
jthundiyil
thomasrobins
|
|
|
|
|
If your working in Windows 2000 or XP , then there might be a possibility that your account lacks the access rights to do so. Especially when your are creating an ASP.NET project then the error appears as can't be created. Since your error message isn't clear so this might be a possibility (if your account is other than the administrator one) . Or your VS.NET is not installed correctly... so check the possibilities.
|
|
|
|
|
Hello all,
Does anyone know how to get the localized name of default directories in the .NET framework? For instance, I know the German "Program Files" folder is "Programme" , but how can I find out what it is at run time?
I looked through the System.IO.Path class (which looked promising), but never found a solution.
Thanks all,
John Guin
|
|
|
|
|
Have a look at:
System.Environment.GetFolderPath
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemenvironmentclassgetfolderpathtopic.asp
|
|
|
|
|
CurrentUICulture is the property for the application UI language. By default, CurrentUICulture will match the system settings for UserUILanguage
|
|
|
|
|
I think the "native" Property Grid control has a PropertyChanged event which fires when the property was changed and the user moved the focus from the changed property. This is not quit enough for me.
Does anyone know if I can somehow wire to the "editing" event. That is an event which fires while the property is edited?
|
|
|
|
|
Is it due to COM JITA Object or because COM object execute in its own context.
Whatever be the case how the static nature of DAAb is bottleneck when it has only static method not variable.
Can anybody please help and suggest any mean to solve this problem?
It making non static data access block a solution??????.
Please reply soon, its urgent...
Ashish Rawat
Developer
.NET
|
|
|
|
|
Hi
Can any one explain what is ISupportInitialize Interface?
Just i gone thru the MSDN document, but i cann't understand.
M.Sendilkumar
|
|
|
|