.NET Framework Tools Albrecht Wöß Institute for System Software Johannes Kepler University Linz © University of Linz, Institute for System Software, 2004.

Slides:



Advertisements
Similar presentations
Auditing Microsoft Active Directory
Advertisements

Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
ASP:ListView ASP:DataPager ASP:LinqDataSource ASP:ListView Adventure Works Products Adventure Works Products Adventure Works Products Adventure Works.
Building Localized Applications with Microsoft.NET Framework and Visual Studio.NET Achim Ruopp International Program Manager Microsoft Corp.
Chapter 9 Chapter 9: Managing Groups, Folders, Files, and Object Security.
Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting.
Programming in the Office 2003 Environment Corinne Hoisington.
Code Access Security vs. Role-Based Security  RBS  Security identity attached to user accounts  Access to resources specified according to user’s group.
.NET deployment and configuration (but mostly about security) Jørgen Thyme Microsoft Denmark.
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
Assembly Where it all gets physical. Objectives Introduce concepts of assemblies Discuss elements of assemblies Show how to build assemblies Runtime aspects.
ASP.Net Security: Fundamentals Chapters 1-4 Freeman and Jones Book.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
© 2009 Autodesk Troubleshooting common installation problems TS AutoCAD (LT) Product Support By Tom Stoeckel.
Chapter 2: Installing and Upgrading to Windows Server 2008 R2 BAI617.
Chapter 12 Microsoft Assemblies. Process Phases Discussed in This Chapter Requirements Analysis Design Implementation ArchitectureFramework Detailed Design.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Introducing, Installing, and Upgrading Windows 7 Lesson 7.
1 Namespaces and Assemblies © University of Linz, Institute for System Software, 2004 published under the Microsoft Curriculum License.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
.NET Overview. 2 Objectives Introduce.NET –overview –languages –libraries –development and execution model Examine simple C# program.
DEV343.NET Application and Library Versioning Juval Löwy
.NET Framework & C#.
Understanding Code Compilation and Deployment Lesson 4.
Importing outside DLLs into.Net platform and using them By Anupama Atmakur.
Presenter: PhuongNQK. Goals Provide you insights into core concepts of.NET framework  Assembly  Application domain  MSIL.
ASSEMBLY. A SSEMBLY Assemblies are the fundamental units of applications in the.net framework An assembly can contain classes, structures, interfaces.
ASSEMBLIES AND THE GAC CHAPTER 1, LESSONS 4-7 & LAB.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Agenda Assemblies 101 Anatomy of an Assembly What is Metadata? Assembly Variations Signing Assemblies Global Assembly Cache.
.NET Framework Danish Sami UG Lead.NetFoundry
MSIL & CLI Kun-Yuan Shieh.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Basic Security: Java vs.NET Master Seminar Advanced Software Engineering Topics Prof. Jacques Pasquier-Rocha Software Engineering Group Department of Informatics.
Java2C# Antonio Cisternino Part V. Outline Assembly & co. Visual Studio environment Example: using DirectX from C#
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
1.NET FRAMEWORK CE-105 Spring 2007 Engr. Faisal ur Rehman.
Efficient Deployment & Management of ASP.NET 2.0 Applications on IIS 6.0 Alexis Eller Program Manager Internet Information Services Microsoft Corporation.
.NetDeploymentNOEA / PQC 2005 Application Deployment and Versioning Source: Joe Hummel, kursus i.Net, jan
Section 11: Implementing Software Restriction Policies and AppLocker What Is a Software Restriction Policy? Creating a Software Restriction Policy Using.
System.Security.Policy namespace Chinmay Lokesh.NET Security CS 795 Summer 2010.
AUC Technologies Projects Consulting, Development, Mentoring, and Training Company.NET Assemblies Presented By : Muhammad Atif Hussain Deputy Manager IT.
Manage Assemblies. Manage Application Strong Name Create a file: –sn -k a.snk View public key information: –sn -tp a.snk Install file in a CSP Container:
Compunet Corporation1 Programming with Visual Basic.NET Fundamentals of Programming Lecture # 1 Tariq Ibn Aziz.
Lecture 4: J# Execution Model. 2 MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET 4-2 Objectives “J# programs execute like any other.NET program.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
August 2003 At A Glance The IRC is a platform independent, extensible, and adaptive framework that provides robust, interactive, and distributed control.
What is GAC Repository containing all the assemblies of CLR Machine wide Assemblies shared by several applications Where CLR is installed C:\Windows\Microsoft.NET\assembly\GAC_MSIL.
Module 4: Deployment and Versioning. Overview Introduction to Application Deployment Application Deployment Scenarios Related Topics and Tools.
The Execution System1. 2 Introduction Managed code and managed data qualify code or data that executes in cooperation with the execution engine The execution.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Assemblies. 2 Objectives Introduce assemblies –concept –creation –naming Discuss deployment –main.exe –dependent assemblies.
METADATA IN.NET Presented By Sukumar Manduva. INTRODUCTION  What is Metadata ? Metadata is a binary information which contains the complete description.
ClickOnce Deployment (One-click Deployment)
Lecture 1: The .NET Architecture
An Introduction to the Shared Source Common Language Infrastructure (SSCLI) Damien Watkins Copyright Watkins 2002.
CE-105 Spring 2007 Engr. Faisal ur Rehman
.NET and .NET Core 2. .NET Runtimes Pan Wuming 2017.
.NET Framework: Backdoors
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Introduction to C# AKEEL AHMED.
Assembler, Compiler, Interpreter
Assembler, Compiler, Interpreter
The Role of Command Line Compiler (csc.exe)
ClickOnce Deployment (One-click Deployment)
Presentation transcript:

.NET Framework Tools Albrecht Wöß Institute for System Software Johannes Kepler University Linz © University of Linz, Institute for System Software, 2004 published under the Microsoft Curriculum License

A. Woess.NET Framework Tools2 Overview csc.exeC# compiler  csc.exe vbc.exeVisual Basic.NET compiler  vbc.exe ildasm.exeIL disassembler  ildasm.exe dbgclr.exeGUI debugger  dbgclr.exe mscorcfg.msc.NET Framework Configuration Tool  mscorcfg.msc sfushion.dllAssembly Cache Viewer  sfushion.dll ngen.exeNative Image Generator  ngen.exe gacutil.exeGlobal Assembly Cache Utility  gacutil.exe sn.exeStrong Name Tool  sn.exe caspol.exeCode Access Security Policy Tool  caspol.exe wsdl.exeWeb Service Description Language Tool  wsdl.exe (... siehe "Die.NET-Architektur")

A. Woess.NET Framework Tools3 Assembly Cache Viewer (sfushion.dll) Windows Explorer Add-In that visualizes the Global Assembly Cache (GAC) like an ordinary directory actual paths: e.g. GAC –assembly mscorlib: GAC* \NativeImages1_v \mscorlib\ __b77a5c561934e089_be4960bd\mscorlib.dll GAC –assembly System: GAC* \GAC\System\ __b77a5c561934e089\System.dll *) see ".NET Architecture", Appendix A: important directories

A. Woess.NET Framework Tools4 Native Image Generator (ngen.exe) generates a native image (= a tranlation to machine code) of an assembly thus the assembly is compiled only once on the target computer at install time (= install-time compilation); no need for new compilations on every program run (= just-in-time (JIT) compilation) core assemblies of the.NET Framework are installed as native images per default: mscorlib, System, System.Drawing, System.Windows.Forms,... file size comparison: PE file  native image: e.g. System.dll Bytes as IL assembly Bytes as native image

A. Woess.NET Framework Tools5 Global Assembly Cache Utility (gacutil.exe) Command line tool for installing assemblies in the GAC > gacutil -i GlobalLib.dll removing assemblies from the GAC > gacutil -u GlobalLib displaying the contents of the GAC > gacutil -l supports counting the references to global assemblies > gacutil -ir GlobalLib.dll FILEPATH c:\Apps\MyApp.exe > gacutil -ur GlobalLib FILEPATH c:\Apps\MyApp.exe > gacutil -lr –the assembly cannot be removed from the GAC, while at least one reference to it still exists

A. Woess.NET Framework Tools6 Strong Name Tool (sn.exe) Command line tool for generating pairs of private & public keys > sn -k mykeys.snk extracting the public key from a key pair > sn -p mykeys.snk mypubkey.snk delayed signing of assemblies > sn -R MyLib.dll mykeys.snk

A. Woess.NET Framework Tools7 Strong Name for Assemblies "strong" assembly name consists of: –name –version number ( major.minor.build.revision ) –culture attribute (usually neutral ) –hash value of the public key z.B. MyLib, Version= , Culture=en-US, PublicKeyToken=13a3f300fff94cef Why sign an assembly? –only names of signed assembly are considered "strong" –only signed assemblies can be installed into the GAC

A. Woess.NET Framework Tools8 Delay-Signing sn -k mykeys.snk [assembly: AssemblyKeyFile("mykeys.snk")] MyLib.cs csc /t:library MyLib.cs sn -p mykeys.snk mypubkeys.snk csc /t:library MyLib.cs sn -R MyLib.dll mykeys.snk [assembly: AssemblyKeyFile("mypubkeys.snk")] [assembly: AssemblyDelaySign(true)] MyLib.cs MyLib.dll (signed) sign directlyDelay-Signing

A. Woess.NET Framework Tools9 Code Access Security Policy Tool (caspol.exe) Command line tool for turning security checks on and off > caspol -security ( on | off ) adding/removing/changing/listing code groups > caspol -addgroup > caspol -remgroup > caspol -chggroup > caspol -listgroups adding/removing/changing/listing permission sets > caspol -addpset > caspol -rempset > caspol -chgpset > caspol -listpset... commands target enterprise/machine/user security policy level > caspol -enterprise / -machine / -user / -all......

A. Woess.NET Framework Tools10 Web Service Description Language Tool (wsdl.exe) Command line tool for generating web service proxies from WSDL files > wsdl -language:VB > wsdl -namespace:TimeClient > wsdl -out:TimeServiceProxy.cs > wsdl public class TimeService : System.Web.Services.Protocols.SoapHttpClientProtocol { public TimeService() { this.Url = " } public string GetTime() { object[] results = this.Invoke("GetTime", new object[0]); return ((string)(results[0])); } TimeService.cs