C# - Include References To Web Services In NANT Or Csc.exe?

Nov 23, 2010

Im trying to automate our build process. To do this i need to compile the app_code in a asp.Net website to a dll so i can run NUnit test against the code. Before you suggest that i just use a class library, i will say that i agree with you, my superiors however, take a different view and have vetoed the use of dlls in our web sites.

The problem i have is that the app_code classes reference web services. How do i get the csc task to include these when compiling the code into a class library? The nant target i have so far is:

<target name="Compile">
<property name="nant.settings.currentframework" value="net-3.5" />
<csc target="library" output="DocSysAppCode.dll" debug="true">
<sources>
<include name="D:InetpubDocSysApp_CodeCommon*.cs" />
<include name="D:InetpubDocSysApp_CodeDocSysSiteLegislation.generated.cs" />
</sources>
<resources>
<include name="D:DocSysQueueWeb ReferencesWS_DocSys*.*" />
<include name="D:DocSysQueueapp.config" />
</resources>
</csc>
</target>

View 1 Replies


Similar Messages:

C# - SQL Server Reporting Services: Web References Versus Assembly References, Poor Performance

Feb 16, 2010

I am using Reporting Services to render a report directly to PDF. It requires that I use two web references: ReportExecution2005.asmx and ReportService2005.asmx. The performance on web references seems really poor. Since my web server (IIS7) and my SQL Server (2008) are on the same box, is there a way I can reference them directly? If not is there any way I can explicitly cache them or something. First load is really really slow, second load is perfectly acceptable.

View 2 Replies

JavaScript - Mvc Script And Style References / Include Script And Style References That Will Not Break On Deployment

May 11, 2010

I'm trying to include script and style references that will not break on deployment, however I can not even get the references to work locally. I have tried using Url.Content() and MVCContrib's <%=Html.ScriptInclude("")%>.

My scripts are in a Scripts folder on the root of the site; my styles are in the usual Content/css/ folder.

The scripts render like this:

<script type="text/javascript" src="/Scripts/MicrosoftAjax.debug.js" ></script>

This will not work in a view page in the Views folder. What am I doing wrong and what is the best way to handle this?

I would have thought Url.Content() would at least work for styles but used in my master page, the link rendered

<link href="/Content/css/Site.css rel="stylesheet" type="text/css" />

This does not work, because the Master Page is in a Shared folder, so what is really the way forward with this?

View 2 Replies

How To Build Website Using Nant Script

Apr 26, 2010

I am using nant-0.90-alpha1 to build asp.net 3.5 web site. I am unable do that. When I am using msbuild , it throwing error saying unknown tag msbuild. How can I build asp.net 3.5 website using nant?

View 3 Replies

How To Use Nant And MSBuild To Build Debug Deployment

Jun 17, 2010

I have a Nant build script which referrences 30 other build scripts.

Each build script referrences a visual studio solution using MSBuild.

Each solution has 3 to 5 projects in.

Some projects are Class Librarys and some are Web Apllications.

The projects reference other projects both in their solution and out of their solution, so the projects do not use project references, they reference the the Release DLLs in the Bin folders of the other projects.

To use the software, I need to publish all the solutions together.

Which means I cannot do a deployment which is in debug mode.

Which means I cannot the step into and debug the code.

I would like to run the build script to get a deployment of the software which I can debug.

View 1 Replies

Nant Aspnet_compiler.exe Release Build - How To Make It

Mar 11, 2011

I have the following nant task:

[code]

this is used when loading certain assets (swf files) by being appended as a querystring parameter and ensures that when debugging a cached version isn't received but is manageable once released.

However, after what I believed should be compiling a relase build, the version is still being set as a Guid indicating I'm not achieving a release build yet. I've checked the web.config and the value of debug is changed to false so I'm assuming I'm missing some setting in the aspnet_compiler.exe arguments, but I cant find anything which indicates such in the documentation.

View 1 Replies

Iis - How To Create Virtual Directory Build Website Using Nant

Aug 3, 2010

I am trying to Create Virtual Directory and develop the asp.net projects ..in IIS using NAnt script .

View 1 Replies

Include Files Within Include File

May 20, 2013

I have just started with ASP.NET.

I like the idea of using Include files so that I can create various versions of individual parts of a site and decide in code which to display. I used:

<%Response.WriteFile("contentcontent.aspx")%>

to include a content.aspx file within my default.aspx page.

I would like to include a Left.aspx, Main.aspx and Right.aspx file inside the content.aspx file. I tried using the reponse.writefile function but noticed when I debug the website that the text "reponse.writefile..." displays instead of the code contained within the referenced file(s).

Can this not be done?

View 6 Replies

Web Forms :: How To Find All The Web Services And Windows Services Running On A Server

Feb 4, 2011

How to Find All the Web Services and Windows Services Running on a Server in ASP.Net. I have the server details with me and want to find all the Web services running on it.

View 1 Replies

Configuration :: Deploy Window Services And WCF Services Using Web Package?

Apr 3, 2010

I am using Visual Studio 2010 Release candidate1. I have to deploy my web application which consists of a website, certain window services, certain WCF services and Sql Server 2005 database.I read Vishal Joshi's blog(http://vishaljoshi.blogspot.com/2009/09/overview-post-for-web-deployment-in-vs.html) detaing Web Package in VS2010. I want to know how to deploy window services and WCF services using Web Package. Also, I want to create a web setup (.msi) for deployment instead of Web Package so that the .msi takes care of all the application and database deployment like the web package does.

View 1 Replies

Installation :: State Services Not Found In Services.msc?

Jul 20, 2010

I installed vs2010 in my machine and opened solution (of same version copied from other machine).

But getting stateservices error message..Moreover i am unable to find asp.net services in the list of services under serives.msc.

View 2 Replies

Search Text Box Using Web Services & Without Using Web Services In .net?

Mar 4, 2010

I am using HTML controls while using Ajax in my .net project. Now I want to make my text box to be autocomplete. I am fetching a data using a query for the respective typed text but i am not sure how to bind that data to text box and show it the way it is being displayed in google and other famous sites. I would also love to know the way using web services. Which way is more efficient?

View 1 Replies

Together With WCF RIA Services Or WCF Data Services

Jul 12, 2010

Makes it sense to use ASP.NET applications together with WCF RIA Services or WCF Data Services (to encapsulate the data access layer) ? Or are these technolgies only useful for Silverlight applications.

View 1 Replies

How To Get Rid Of Any Or All References To Ajax 4

Sep 28, 2010

I looked at Ajax 4, but on my XP box I had errors I couldn't work with. So I uninstalled Ajax 4 and installed Ajax 3.5, then copied the DLL files to all the Bin directories of the web sites on the development box. I thought everything was fine, but after several hours of development, I again started getting the error:AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

View 1 Replies

How To Identify References

Jan 19, 2010

I am starting a new website based on an existing one that I already have up and working. I copied the old website files into a new folder but it will not run. The error suggets that I need to add a reference. So my question is . . . how can I identify the references that are included in the original site?

View 3 Replies

Opinion On Indirect References?

Feb 17, 2011

I was comparing SharpArch to Spring.NET earlier, and had some thoughts.Both contain Core, Data and Web namespaces (as well as others). While SharpArch maintains them all in one assembly, Spring.NET does so in separate assemblies.Initially, I liked this concept, because one could reference the Core without indirectly referencing something they didn't need, like System.Web.However, it later occurred to me that whether or not things were combined, they still operated within the .NET space and have equal access to the GAC.So why not put things in one assembly, as long as individual elements in their namespaces do not make use of certain things?Of course, I'm talking about a base-line assembly, not an actual business solution.

View 1 Replies

VS 2010 How Do References Really Work

Jun 1, 2010

If have a folder (say "binaries") and place all the 3rd party dll's you are going to use in there. When you reference the dll in your project, what is the use of setting "Copy Local"?If you dont set Copy Local, does your code reference the dll in that folder and the folder have to be deployed with your application?

I just had another "something new" and that was a dll just have to be present apparently in the web project's bin folder.The "easy way" suggested was adding a post build like this:

Quote:xcopy "$(SolutionDir)binaries/*.dll" "$(ProjectDir)bin" /y
xcopy "$(SolutionDir)hibernate.cfg.xml" "$(ProjectDir)bin" /y
xcopy "$(SolutionDir)Log4Net.config" "$(ProjectDir)bin" /y

all that dll's get copied over, and I dont even know what is really required.Btw, I noticed with the above script that say "NHibernate.dll" get copied over, but "NHibernate.Caches.SysCache.dll" not.

View 4 Replies

Where Are Components (dll) References Stored

Mar 18, 2010

I have dlls in bin directory. I can't see where they are referenced in either solution or web.config files. So where are the references stored ?

View 3 Replies

Visual Studio :: How To Add References

Nov 29, 2010

in one of my project I have to add System.ServiceModel.Web namespace. I try to add reference in this way:

(1). Right click on references in the project solution explorer

(2). search for System.ServiceModel.Web name space.

But it is not here. How can I add this name space to my project and .net pannel?

View 2 Replies

Web Forms :: Looking For Format References?

Mar 9, 2010

I need to format references. My customer wants the reference to be left aligned, with all the lines after the first one indented. Like this:

This is a reference. This reference can be several lines long, and all the lines after the first one need to be undented like this.

Assume this is taking up the width of the screen, I'm trying to not have to type more than I really need to. The width is dynamic, so there is no fixed width. Otherwise this would not be a problem.

View 3 Replies

How To Improve CM.AppSettings References

Mar 3, 2010

ASP.NET 3.5 Classes throughout our solution referenced ConfigurationManater.AppSettings[""] to get appSettings (from web.config).

We decided we weren't happy with that. Folks were mistyping appSetting key names in code (which compiled fine), and it was cumbersome to track usages. And then there's the duplicated strings throughout the codebase as you reference the same appSettings all over the place.

So, we decided that only one class would be allowed to reference the ConfigurationManager, and the rest of the solution would reference that class when it needed the value of a certain appSetting. ConfigurationManater.AppSettings[""] was static, so we exposed a bunch of static read-only properties off of our single Settings class.

[Code].....

And now we're injecting the ISettings instance as a dependency of the objects which use settings values (the class/interface are in a project that everyone can reference without problems).

In places where we can't inject an existing instance (e.g. Global.asax), we construct a new instance into a static field.

Given all of that, what would you recommend we change, and why?

View 1 Replies

WCF / ASMX :: Add Web Service References?

Feb 23, 2011

i had generated a Service Contract interface by using wsdl.exe (VS2010 command prompt). After that i create a WCF method which inherit from the interface class which was created by the wsdl.exe. And then i host the web service to local IIS.

When i use the simulator provided by vendor, the method is working fine.

But when i created my own project and add service reference (by key in the url), and using the code below:

[Code]....

when i type client. , i cant found the method inside the intellisence box. Which supposely got 2 methods inside this service references.

View 4 Replies

Store Three References For One Jobseeker

Mar 16, 2010

I am developing job portal, i have one

1)tbl_jobseeker
columns
---jobseeker_id
---fname
--lname
-----
--refrences

in this table i am stroring job seeker information i strucked where i want to store 3 refrences for one jobseeker in each refrence i have refernce_Name, refrence_Mobile like while jobseeker registration he can enter 3 refrences forhim eg: jobseejer form look like this

FirstName: sachin
Last : Kumar
refrences : refrenceName referMobile
xyx +9198888
abc +91988555
dfd +915858855
Save Cancel

View 5 Replies

C# - Matching .NET References To Namespaces?

Apr 8, 2010

im creating a class library, and adding all the necessary references for the source files contained in it.

Now, off the bat, there were over 300 compiler errors complaining about missing namespaces.
The library will now compile after i just added all of the System.* references, however this is obviously not the best way.

I.e. if a classes needs using System.Web.Script;, there is no System.Web.Script reference, how would i find out which one of these references contained it? System.Web didnt.

View 4 Replies

Passing Two Different References To A Function?

Oct 14, 2010

I have a function called populateList(). I want it to take a reference to a Checkboxlist or a Dropdownlist, query the DB and fill the referenced list with values.Is it possible to generalize the function to take a Checkboxlist or a Dropdownlist depending on what you pass?Or, do I have to write two different functions, one for the Checkboxlist and one for the Dropdownlist?I guess the my question is if theres a common object that covers both, like populateList(ref GeneralList list)

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved