Coder Social home page Coder Social logo

3f / netfx4sdk Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 2.0 60 KB

Developer Pack (SDK). NETFX 4: Visual Studio 2022 / MSBuild 17 / or other modern tools

License: MIT License

Batchfile 100.00%
vs2022 sdk netframework netframework4 hack tools visual-studio visualstudio build msbuild

netfx4sdk's Introduction

An attempt to provide .NET Framework 4.0 Developer Pack (SDK) support for modern Visual Studio / MSBuild / etc.

Two modes! Pure batch-scripts! Portable and Flexible (changes can be easily undone) ! Free and Open !

Based on hMSBuild + GetNuTool

Copyright (c) 2021-2024  Denis Kuzmin <x-3F@outlook.com> github/3F

「 ❤ 」 License Build status release

Why netfx4sdk

netfx4sdk allows you to use easily a deprecated SDK for modern toolsets and IDEs such as VS2022+ / MSBuild 17+ / and other tools without installing any other outdated versions of Visual Studio.

Microsoft officially dropped support of the Developer Pack (SDK) for .NET Framework 4.0. Now it can only be a Runtime version: https://dotnet.microsoft.com/en-us/download/visual-studio-sdks

Means you can't simply build anything along with pure VS2022 (e.g. VM image, clean VS2022 env)

MSB3644: The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can (*no, you can't) download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

But netfx4sdk will try to eliminate this artificial limitation by a single command,

  • Here's result using netfx4sdk 1.0 for the same clean VS2022 VM image above.

Usage

-mode sys - Hack using assemblies for windows. Highly recommended because

  • [++] All modules are under windows support.
  • [+] It does not require internet connection (portable).
  • [+] No decompression required (faster) compared to package mode.
  • [-] This is behavior-based hack;

-mode package will try to apply obsolete package to the environment.

  • [-] Officially dropped support since VS2022.
  • [-] Requires internet connection to receive ~30 MB via GetNuTool.
  • [-] Requires decompression of received data to 178 MB before use.
  • [+] Well known official behavior.

Arguments

 -mode {value}
  * system   - (Recommended) Hack using assemblies for windows.
  * package  - Apply obsolete remote package. Read [About modes] below.
  * sys      - Alias to `system`
  * pkg      - Alias to `package`

 -force    - Aggressive behavior when applying etc.
 -rollback - Rollback applied modifications.
 -global   - To use the global toolset, like hMSBuild.

 -pkg-version {arg} - Specific package version. Where {arg}:
     * 1.0.3 ...
     * latest - (keyword) To use latest version;

 -debug    - To show debug information.
 -version  - Display version of netfx4sdk.cmd.
 -help     - Display this help. Aliases: -help -h -?

Samples

netfx4sdk -mode sys
netfx4sdk -rollback
netfx4sdk -debug -force -mode package
netfx4sdk -mode pkg -pkg-version 1.0.2

Download

https://github.com/3F/netfx4sdk/releases/latest

Build and Use from source

git clone https://github.com/3F/netfx4sdk.git src
cd src & build & bin\Release\raw\netfx4sdk -help

.sha1 official distribution

netfx4sdk releases are now accompanied by a .sha1 file in the official distribution; At the same time, commits from which releases are published are signed with the committer's verified signature (GPG).

Make sure you are using official, unmodified, safe versions.

Note: .sha1 file is a text list of published files with checksums in the format:

40-hexadecimal-digits <space> file

eead8f5c1fdff2abd4da7d799fbbe694d392c792 path\file
...

Contributing

netfx4sdk is waiting for your awesome contributions!

netfx4sdk's People

Contributors

3f avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

netfx4sdk's Issues

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.