Code Monkey home page Code Monkey logo

.netversionchecker's Introduction

.NET Version Checker

Description

This C# application scans a specified directory for DLL and EXE files and determines the target .NET Framework version for each file. It categorizes the files by path, filename, and target framework version, and outputs the results in a sorted (descending order based on the framework version) CSV or TXT file.

Requirements

  • .NET SDK (compatible with your project; typically .NET 5 or later)
  • Mono.Cecil package

Setup

  1. Install the .NET SDK: Ensure that the .NET SDK is installed on your machine. If not, download and install it from the official .NET website.

  2. Add Mono.Cecil Package: Mono.Cecil is required to read assembly metadata without loading the assembly into the execution context. Install it by running the following command in your project directory:

    dotnet add package Mono.Cecil

Running the Application

  1. Navigate to Your Project: Open a command prompt or terminal and navigate to your project directory.

  2. Compile the Project: Compile your project using the .NET CLI:

    dotnet build
  3. Run the Application: Run the application with the following command:

    dotnet run
  4. Follow the Prompts: The application will ask you to enter the directory path to scan and the output file path (including the desired filename and .csv or .txt extension). Enter these details as prompted.

  5. Check the Output: After the application runs, check the specified output file for the results.

Notes

  • Ensure that the paths provided to the application are accessible and that you have the necessary permissions to read the files.
  • The application is designed to handle .NET DLL and EXE files. Non-.NET files in the specified directory will be ignored.

.netversionchecker's People

Contributors

twoko avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.