how to merge my application,database and framework in one exe - c#-4.0

I have created desktop application using visual studio 2010 (C#) connected with database (sql server 2008).
I want to make my application a setup project to install at any operating system (Xp,VISTA and Windows 7) and at different machines including all files like framework,sql server and database files in one exe.
Please help me i need this necessary
Thank you

An useful answer may be is to make a batch file with all the required software and database. When you start the batch, all the application will install.

Related

Migrating onlyoffice community server in Windows

We have installed a Onlyoffice Community Server in our company on a Windows system.
We need to migrate all these data to another Windows server (version 2012). If I go to settings I don't see the option of Data Management to do the backup and restore.
I am getting the results for migrating community server between Windows and Linux servers, but nothing for Windows and Windows.
Please help us with this issue.
You can use the first part of the instruction for migration community server between Windows and Linux servers. You need to copy folders and create your database dump file. Then restore dump file and folders on the new server.

Copy website feature in visual studio 2010 is not working because my local pc code is under source control

This is my first time posting a question in StackOverflow. Pls forgive me if I made any mistake.
The condition is such: I have codes inside my laptop that is under source control by a TFS (Team Foundation Server) server in the company and I have a web server which I upload the codes so that user can browse the pages. So there are 3 main items here: the TFS server, my laptop and the web server.
When I try to check in/out between my laptop and TFS server using Visual Studio, no problem.
When I try to use "Copy Web Site" feature in Visual Studio to upload my laptop's code to the web server, no problem too.
However, when I try to use "Copy Web Site" feature in Visual Studio to DOWNLOAD the web server's code into my laptop, then it will says the job is completed, but in actual fact, it has not done anything because the fact is laptop's code is under source control and it cannot overwrite it.
The only solution is I have to "check out" the local laptop's code before I can successfully DOWNLOAD from web server into my laptop. This is very troublesome and annoying if I have many files to DOWNLOAD. Is there another solution to this problem?
Another question is, is there any better way to configure the relationship of these 3 items?
Sorry for such a long question.
I cannot post any images because I don't have the "10 reputation" rights required by stackoverflow.
Thanks
The easiest answer is to use a local workspace, but unfortunately local workspaces aren't an option unless you're using both Visual Studio 2012 and TFS 2012.
The basic problem here is that when you use a server workspace, files are read-only on your file system until you explicitly check them out of source control. Local workspaces don't have that necessity.
The bigger question here is why you want to grab files from the web server. You're using source control. If people are making changes to the code directly in the web server without going through source control, that is a huge problem that should be addressed immediately.

Visual Source Safe 8 on Windows 2012

I have fairly large legacy (read only) VSS 8 database that is currently sitting on a windows 2003 server.
As part of an infrastructure consolidation I am being asked to move it onto a new Windows 2012 server. I can't find any notes on whether or not VSS8 will run on 2012; before I even attempt this do you know of any issues running VSS on Windows 2012?
Is it easier to flip the old server to a VM and keep it for posterity and those rare occasions we want to know what someone did in the naughties?
The database itself is merely a fileshare, so you don't have to install the accelerator if you don't want to/are unable to.
In the weeks since asking have deploying VSS2005 (with the runtime available on the server) onto Windows 2012 enterprise. The applications install with a warning about versions but they run fine; including the admin tools for users and checking the consistency of the databases. The end user side all works well too.

Is a good practice to install Visual Studio in the same server as TFS?

We are having compilations problems in a TFS server and it's because the server lacks several libraries built in the default VS2012 Premium installation (Microsoft Fakes in this case).
I'm unsure of going ahead installing a full instance of VS, but first I want to know what is the best practice in this regard?
What is recommended?
Since we are talking a sandbox, do whatever and don't worry about it. If we are talking best practices, it's not a good idea to put your build tier on the app tier / data tier. Any developer could check in code that gets run on the server during the compile and trash your entire environment.
Have you looked at Visual Studio Online? It's a hosted TFS service and you can use their hosted build controller or configure your own. That makes for a very good sandbox IMO.
I don't see any issue installing VS on the TFS server(I assume you run your builds on that server too and that's when you are seeing the problem. Ideally tfs server and build box should be separate but some people use the same box.)
I have used Visual Studio on the build box several times to debug issues with builds. You just need to make sure you close the VS instance (if it has a solution open) once you are done with debugging otherwise your builds can fail when they try to clean up the project directory at the start of the build.
We run a single server TFS instance which has everything - sql, SharePoint and tfs - running on it. It is also a build server so it has to have VS 2010 and 2012 installed. We've done this with all versions since 2005 and have had no issues with it at all.

Connect and develop with sharepoint server 2013

I recently setup a sharepoint server 2013 on our company and have found really good examples how you can override the suitbar with custom links.
Now that I'm trying to implement those examples i get to that point where Visual Studio 2012 and Office development tools is installed.
When i choose to start a new project I select New Project > Templates > Visual C# > Office/SharePoint > SharePoint Solutions > SharePoint 2013 Empty Project hit ok and i get an error that says Sharepoint not installed?
Am I supposed to install VS 2012 and develop om my Sharepoint 2013 server directly?
A very common way to develop SharePoint applications is to run a virtual machine (hyper-v under windows 8 for example) on your development workstation.
You can also dual-boot into a vhd file.
You can also install Windows Server 2012 and use one of the many desktop conversion techniques to use it as your primary operating system on your workstation.
Another often seen technique is to have a virtual machine hosted in the cloud or a datacenter, running both SharePoint Server and Visual Studio. Then connect to that machine using Remote Desktop.
With some trickery, you could have the SharePoint 2010 installer install om a workstation OS. This no longer works on SharePoint 2013. The reason this support was removed is due to the inclusion of Boot from VHD and Hyper-v into Windows 8.
It is my experience that if you just want to build your application and not run or debug it, that just having the assemblies copied over from an actual SharePoint Server will allow you to do that. I haven't found an updated document for SharePoint 2013 yet.
Yes. You have to develop on the sharepoint server directly using Visual Studio as Sharepoint server GAC has the required server object models to work programatically with sharepoint server object model.
You can aslo develop on client machine using Client Object Model or WCF Data Services Framework.

Resources