Building the Code ¶
Requirements ¶
To build the code, you will need either
Visual Studio
(2008 or later), or the free
Visual Studio Express Editions
(2008 or later). Please note that we only keep one version of the
Visual Studio solutions in the source tree. If your version of Visual
Studio is different from the version listed for your source code (see
table above), then you will have to convert the solution and project
files.
Visual Studio Express Edition Users ¶
A number of the included libraries are built in Visual C++. As such, you
may find that you also need to install the Visual C++ Redistributable
(the version you need is the Visual Studio Version for your source code
listed in the table above). If you are using 2010 Beta 2, you should
still download and install the version for the source code you
downloaded, unless you intend on rebuilding all referenced binaries in
the source tree.
Visual Studio 2005 Users (All Editions) ¶
This version of VS shipped with .NET Framework 2.0. You will need to install
.NET Framework 3.0
.
Building the ImageViewer Code ¶
- Open ImageViewer.sln
in /Trunk/ImageViewer
in Visual Studio and build it
- Set the startup project to ClearCanvas.Desktop.Executable
Building the ImageServer Code ¶
The ImageServer code is composed of a single Windows Service
(ClearCanvas.ImageServer.ShredHostService.exe) and an ASP.NET 2.0 based
Web GUI.
To build the ImageServer+WebStation, both Visual Studio 2008 and Visual
Studio 2010 are required. The core ImageServer is built with Visual
Studio 2008, and the Silverlight component is built with Visual Studio
2010. The solution file must be loaded with Visual Studio 2008. As
part of the build, the solution file will use Visual Studio 2010 to
build just the Silverlight component.
Additional Prerequisites ¶
In addition to the base requirements listed above, you will need the following:
- Install
Visual Studio
(Note:
Visual C# Express Edition
can be used for development of the Windows service, but not for development of the Web GUI.)
- Install
ASP.NET AJAX 1.0
- Install
Microsoft Web Deployment Projects
for use with the ImageServerWeb.sln file.
- Install
Silverlight 4 Control Toolkit
for building the ImageServer+WebStation.
- Install ImageServer. This will create the database required to
run the server. (Another option is to run the database creation scripts
manually for the database. They can be found in the folder
svn://svn.clearcanvas.ca/source/Xian/Trunk/ImageServer/Model/SqlServer2005/Scripts
.
The database creation script must be run first, followed by the table
creation script and then the stored procedure and default data scripts.)
Building and debugging the Windows service ¶
- Locate ImageServer.sln
in /Trunk/ImageServer
- Open it in Visual Studio.
- Change the connectionStrings
in the ImageServer_Shreds_dist.config
in the solution files Solution Items
folder to use the user and password that were used to install the ImageServer.
- Edit /Trunk/ImageServer/Executable/Logging.config
to contain the database connection information.
- Build the solution.
- Startup ClearCanvas.ImageServer.ShredHostService
to run the server in a command line window.
Building the web GUI code ¶
- Locate ImageServerWeb.sln
in /Trunk/ImageServer/Web
.
- Open it in Visual Studio.
- Change the connectionStrings
in the Web.config
of the ClearCanvas.ImageServer.Web.Application
project to use the user and password that were used to install the ImageServer.
- Edit Trunk/ImageServer/Web/Application/Logging.config
to contain the database connection information.
- Build the solution.
- Startup the ClearCanvas.ImageServer.Web.Application
project to view the Web GUI.
- Note that the ClearCanvas.ImageServer.Web.Application
project to view the Web GUI is also contained in the ImageServer.sln
solution file and can be run from there as a convenience to make development work easier.
A Few Notes About SVN (aka Read This If You're A SourceSafe User) ¶
For those of you who have used SourceSafe or other similar SCM systems,
you'll find the SVN SCM model to be slightly different. You'd do well
to read some of the introductory documentation that comes with
TortoiseSVN. If you're lazy, here are a few notable differences:
-
Checking Out
the code is more or less equivalent to performing SourceSafe's Get Latest Version
on an empty working directory.
- Once you've checked out the code, you'll never have to do it again, unless you want your working copy somewhere else.
- Unlike SourceSafe, when you get a fresh copy of the code from the repository, your working copy isn't read-only.
- There is no concept of checking out
a file before editing it. Since your copy isn't read-only, you can edit your working copy however you want.
- When you've made changes to your working copy, you Commit
your changes. This is substantively equivalent to SourceSafe's Check In
.
If another person has committed changes before you, you will need to
merge the changes into your working copy, then commit them again.
- A commit (or any change in the source tree), no matter how small, results in the entire
source tree's revision number being incremented by 1. It is possible
to retrieve the exact state of the tree at any given revision number.
- Multiple changes can be committed as a single Changeset
.
That is, if you've edited a number of files and you commit them all at
once as a set, that will result in the revision number of the source
tree being incremented by only 1. Related to this is the feature that
all commits are atomic. It's impossible for a changeset to be partially
committed. It's either all in or not in at all.
-
Updating
a file or directory will Get Latest Version
of that file or directory
分享到:
相关推荐
Because the potential of the IoT is so massive, everyone is rushing to build a strategy or solution, which usually sounds like this: “Hey, let’s connect everything in our building, supply chain, ...
Building the Web of Things is a guide to using cutting-edge web technologies to build the IoT. This step-by-step book teaches you how to use web protocols to connect real-world devices to the web, ...
Readers are introduced to the building blocks of IoT, and then deploy those principles to by building a variety of useful projects. Projects in the books gradually introduce the reader to key topics ...
《The Book of Qt4: The Art of Building Qt Applications》是一本深入探讨Qt4框架的权威指南,专为希望构建高效、优雅的Qt应用的开发者设计。Qt4是Qt开发库的一个重要版本,提供了丰富的功能和工具,使得跨平台应用...
《Building the Web of Things》这本书由Dominique D. Guinard和Vald M. Trifa所著,探讨了如何利用Node.js和树莓派构建物联网(Internet of Things,简称IoT)系统。物联网的概念是指通过互联网技术将各种日常用品...
The Elements of Computing Systems Building a Modern Computer from First Principles 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Readers are introduced to the building blocks of IoT, and then deploy those principles to by building a variety of useful projects. Projects in the books gradually introduce the reader to key topics ...
You'll be introduced to the building blocks of IoT, and then deploy those principles to by building a variety of useful projects. Projects in the books gradually introduce the reader to key topics ...
Building Progressive Web Apps Bringing the Power of Native to the Browser 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Beginning in late 2013, we embarked on a four-year research journey to investigate what capabilities and practices are important to accelerate the development and delivery of software and, in turn, ...
Templates for the Solution of Linear Systems - Building Blocks for Iterative Methods.ps
Completely up-to-date to reflect the newest and most widely used Android SDKs, The Android Developer’s Cookbook is the essential resource for developers building apps for any Android device, from ...
Building the Operational Data Store on DB2 U Using IBM Data Replication, Websphere Mq Family, and DB2 Warehouse Manager
The Android Developer's Cookbook Building Applications with the Android SDK and Source Project Code 源书(pdf)及源代码12章全都有(rar) Book Description Want to get started building applications for ...