About the deployment of LocalDB (publish):
- Use this machine to do the server (visually non-line)
- Double-click the project's properties-->publish-->application files and you will find that there is no. mdf file, then the package should not have a database
- Create a new. mdf and put in the project
To package with a database (with no data for the database framework), create a new project-->windows Form application,
Then Project-->new items-->service-based Database, get an. mdf and open datasources-->add new data with the original project Shift+alt+d Sources
Select Database->dataset->new connection->change->microsoft sql Server Database File->ok->browse-> Select the path to the. mdf file just now, all the way next,
Will remind you to copy the. mdf into the project, you must determine. Now open the first step again properties-->publish-->application Files, you'll find out more. Mdf&_log.mdf, so you can deploy the
- deployment to carry. NET Framework and other things
- Properties-->publish-->prerequisites, tick, and select the second download prerequisites from the same location as my Application
Then run will error (general), this time you can refer to the error description, inside will ask you to http://go.microsoft.com/fwlink/?LinkId=616018 see
The links above will tell you the general location of the framework installation package under VS2015, for example:
By default, the path was C:\Program Files\Microsoft Visual Studio 14.0\sdk\bootstrapper\packages on a 32-bit system and C + + Program Files (x86) \microsoft Visual Studio 14.0\sdk\bootstrapper\packages on a 64-bit system
- TIP:
- If the version is not VS2015, click Other versions under the title to switch versions
- If the VS installation path is not the default, copy the version corresponding path and then look under the native vs installation path
- The final goal is the next heap of packages, and then packaged into the installation package, the user installation if the lack of framework can be directly open the installation without downloading, but the disadvantage is that the package will be larger
- The way to download the package, the main look to save, and then follow the path in the packages to find where the lack of what, missing words in the corresponding path of the product.xml inside to find, and then find the name corresponding to the things and download links, the next may be renamed, well, after you can deploy the
visualstudio2013&vs2015 built-in SQL Server get Started (iii)