.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Making .NET Project Ready for Build from Perfoce

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net
 

Hi,

I'm new to .NET. I've a project checked in to Perforce with single solution file. It has 3 different projects within it. One is ASP.NET, another is web service & another windows service.

Unfortunately, I do not have any build file. For example, I used to have a build file using ANT for all of my Java projects. I'm not sure if the similar functionality can be achieved in .NET. Say for example, by running this build file, it'll create a folder C:\project which will contain my source code in appropriate format. It won't be a truly build file because the source will not be compiled. What I need is that it should put libraries in appropriate folders. I've 3rd party DLL such as log4net.dll & then I've Web References to 3rd party URLs, etc. So, basically, it'll gather those references & then copy source code in C:\project directory along with solution file. And then, I can open this solution file from C:\project in Visual Studio & build it from Visual Studio. Can any one tell me how to achieve it?

Thanks!




View Complete Post


More Related Resource Links

Text Rendering: Build World-Ready Apps Using Complex Scripts In Windows Forms Controls

  

The System.Windows.Forms.TextRenderer class provides support for complex scripts in Windows Forms controls so you can render text the way you want and support international locales.

Miguel A. Lacouture

MSDN Magazine March 2006


Video: How to Build SharePoint 2010 Project Items, Features, and Solutions

  
This video describes how to build SharePoint 2010 artifacts with Visual Studio 2010. (Length: 2:17)

.NET 2.0 Project won't build when targeting .NET 4.0

  
Hi, I'm in the process of giving a .NET 2.0 application a brand new UI using WPF. I created a whole new solution but there are a few .NET 2.0 class library projects from the original that I have copied in. They build fine by default. I want to change them to target the .NET framework 4.0 though so that this application won't require two different versions to be installed. When I change it to target .NET 4.0 client profile it gives me a big list of errors saying that references to a another custom 2.0 library (not in the solution) don't exist (E.G. The type or namespace 'x' could not be found (are you missing a using directive or an assembly reference?)). I'm not missing either. In fact the very first error is complaining about the line containing my using directive. Can you not reference a 2.0 library from a 4.0 project?

SSIS Project Build - Command Line

  
We are trying to automate our Build and Deployment process for SSIS Packages. Can some one suggest me the way to perform the build and deployment using Command Line.

Visual Web Developer 2008 express project - where does it build to?

  

Hi,

I'm a .NET noob, so forgive this if it's a stupid question...

I'm doing some work on a small project inhereited from someone.  The project contains lots of .aspx and .cs files, as well as a web.config, .sln file etc etc.  I want to just try to open this in Visual Web Developer, compile it, upload the compiled files to a demo web server, then see if it has worked (i.e that the website runs on the demo server).  I know the source works as the person who sent it has uploaded it so far to the demo server, but I want to run it locally to make sure I can get the whole process of building working before I do any mods.

So I open the .sln file.  I hit 'build > build website'.  It says it has completed without any errors.  But now I want to look at the compiled source of these files to make sure the code there has changed such that the .aspx files now reference the compiled assembly rather than the code-behind.  But when I browse to the project in Windows explorer and open one of the .aspx files, it's still referencing the .cs code-behind - as if it hasn't compiled to an assembly.  I thought that once you build, all of the .aspx files have a reference to a dll, rather than a cs file?

I can only think the reason is that when you build a project, it builds it somewhere else?  Am

Making an Observable Collection visible project wide

  

I have an ObservableCollection which I works fine within the Window in which it is defined. (See code below)  However, I can't seem to use this in a second Window. Is this to do with the way it is defined or are there simple techniques for getting at it?

 

    Public _ocEng As ObservableCollection(Of EnPlayer)

    Public Property EngSqd() As ObservableCollection(Of EnPlayer)
        Get
            Return _ocEng
        End Get
        Set(ByVal value As ObservableCollection(Of EnPlayer))
            _ocEng = value
        End Set
    End Property

    Private Sub Window_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
        _ocEng = New ObservableCollection(Of EnPlayer)()
        For i = 0 To 4
            EngSqd.Add(New EnPlayer(ref(i), names(i), bat(i), picked(i)))
    &

Error 1 Cannot publish because a project failed to build ? Click Once Deployment issue while publis

  

H! friends

Error  1 Cannot publish because a project failed to build ? Click Once Deployment issue while publishing the application ?

Can anyone tell me how to fix this problem? gone trhough many posts on net but didnt get the right solution for this ? If yu know how to fix this problem tell me plz? or any resource which can guide me to sucessful publishing

 

Pleas reply

 

Thanks

Regards

Vijay Gaur

 


Resetting properties in web deployment project based on custom build config file

  

I'm trying to create a general build environment for multiple projects that can take a some command line parameters and execute a build based on a custom config file.

The problem I am having is after I read in the config parameters with MSBuild.Community.Tasks XMLQuery, which works fine, I can't get aspnet_complier to see these parameters.

I keep getting "error MSB3462: Either MetabasePath or VirtualPath must be specified."

 Here is my project file:

<Project InitialTargets="PreMessage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
 
   <Target Name="PreMessage">
    <Message Text="Building..." />
   </Target>
 
 <PropertyGroup>
  <PreBuildEventDependsOn>
   PreBuild;
  </PreBuildEventDependsOn>
  <PrepareForBuildDependsOn>
   PreBuild;
  </PrepareForBuildDependsOn>
  <BuildDependsOn>
   PreBuild;
   $(BuildDependsOn)
  </BuildDependsOn>
 </PropertyGroup>
 
 <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tas

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

  
Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

  
In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.


jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

To that end, I'm going to walk you through these four steps to effectively implementing a client side Repeater, using ASP.NET AJAX and jQuery:

Project Example: ASP.NET MVC + SubSonic Architecture

  
use of SubSonic to provide the DAL in association with some ASP.NET MVC sites and was waylaid in my original intent to throw up a post summarizing the architecture we're using for the effort. Well I've finally gotten around to it. Recall that in his fake it till you need it post, Dave provided a window on our architecture that I'll build upon here

Ready made List Types provided by SharePoint

  
SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

Making Sense of ASP.NET Paths

  
ASP.Net includes quite a plethora of properties to retrieve path information about the current request, control and application. There's a ton of information available about paths on the Request object, some of it appearing to overlap and some of it buried several levels down, and it can be confusing to find just the right path that you are looking for.

Problem making Role based Menu in MVC application

  

Hi,

 I want to make Rolebase menu in MVC such that if user doesnot have permission for some action then that Action name shouldnot be shown in the Menu.

 I have used the code in the url(http://forums.asp.net/t/1566328.aspx) in my MVC application.My application is a Discussion Forum(in MVC) same functionality as in this forum forums.asp.net

 I have used Controllers for post, thread etc.In each controller there are some actions that are using [Authorize(Roles)] attribute

 but this coding does not count  those Actions in Controllers having Authorize attribute according to the url http://forums.asp.net/t/1566328.aspx 

 In the code, Authorize attribute is applied to Controller class, but my requirement is of Applying Authorize attribute to some actions in controller so that some are available for all users and  some links are available rolewise.Now what is the solution for that?

 

Regards

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend