Skip to content

Commit a5bc965

Browse files
committed
netfx4sdk 1.1. Public release.
* FIXED: Issue #3 incorrect -mode sys handling on Windows XP. * FIXED: `Invalid switch - /B` in older xcopy. Part of issue #3. * NEW: Implemented `-pkg-version` to set specific package version. * NEW: Storing multiple versions in a packages folder. * NEW: `pkg` and `system` mode aliases. * NEW: `-global` key to use the global toolset instead of the local, like hMSBuild. * CHANGED: Redirected warn messages into stderr stream. * CHANGED: Default remote package 1.0.2 up to 1.0.3. To use the latest version, call `-pkg-version latest`
1 parent d458328 commit a5bc965

File tree

5 files changed

+69
-26
lines changed

5 files changed

+69
-26
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.1.0

License.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Denis Kuzmin <x-3F@outlook.com> github/3F
3+
Copyright (c) 2021-2023 Denis Kuzmin <x-3F@outlook.com> github/3F
44
Copyright (c) netfx4sdk contributors https://github.com/3F/netfx4sdk/graphs/contributors
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

Readme.md

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
# [netfx4sdk](https://github.com/3F/netfx4sdk)
22

3-
A hack for dev environments to provide *.NET Framework 4.0* Developer Pack (SDK) support for modern Visual Studio 2022 / MSBuild 17 / or other tools.
4-
5-
It doesn't require installation of outdated Visual Studio such as VS2019 and related.
3+
A hack for dev environments in attempt to provide *.NET Framework 4.0* Developer Pack (SDK) support for modern Visual Studio 2022 / MSBuild 17 / or other tools.
64

75
Two modes. Pure batch-scripts. Based on [hMSBuild](https://github.com/3F/hMSBuild) + [GetNuTool core](https://github.com/3F/GetNuTool)
86

7+
Allows you to use a deprecated SDK for modern toolsets and IDEs such as VS2022 without installing any other outdated versions of Visual Studio.
8+
99
```r
10-
Copyright (c) 2021 Denis Kuzmin <x-3F@outlook.com> github/3F
10+
Copyright (c) 2021-2023 Denis Kuzmin <x-3F@outlook.com> github/3F
1111
```
1212

1313
[ 「 <sub>@</sub> ☕ 」 ](https://3F.github.io/Donation/) [![License](https://img.shields.io/badge/License-MIT-74A5C2.svg)](https://github.com/3F/netfx4sdk/blob/master/License.txt)
14-
1514
[![Build status](https://ci.appveyor.com/api/projects/status/7d2jae48fii2m99o/branch/master?svg=true)](https://ci.appveyor.com/project/3Fs/netfx4sdk/branch/master)
1615
[![release](https://img.shields.io/github/release/3F/netfx4sdk.svg)](https://github.com/3F/netfx4sdk/releases/latest)
1716

18-
## Why netfx4sdk ?
17+
## Why netfx4sdk
1918

2019
Microsoft officially dropped support of the **Developer Pack** (SDK) for .NET Framework 4.0.
2120

2221
* Now it can only be a **Runtime** version: https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
2322

24-
Means you [can't simply **build** anything](https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/builds/42027332#L121) along with pure VS2022 (eg. [VM image, clean VS2022 env](https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/builds/42027332#L121))
23+
Means you [can't simply **build** anything](https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/builds/42027332#L121) along with pure VS2022 (e.g. [VM image, clean VS2022 env](https://ci.appveyor.com/project/3Fs/vssolutionbuildevent/builds/42027332#L121))
2524

2625
> 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
2726
@@ -51,14 +50,22 @@ Two modes.
5150

5251
```bat
5352
-mode {value}
54-
* sys - (Recommended) Hack using assemblies for windows.
55-
* package - Apply obsolete remote package. Read [About modes] below.
56-
57-
-force - Aggressive behavior when applying etc.
58-
-rollback - Rollback applied modifications.
59-
-debug - To show debug information.
60-
-version - Display version of netfx4sdk.cmd.
61-
-help - Display this help. Aliases: -help -h -?
53+
* system - (Recommended) Hack using assemblies for windows.
54+
* package - Apply obsolete remote package. Read [About modes] below.
55+
* sys - Alias to `system`
56+
* pkg - Alias to `package`
57+
58+
-force - Aggressive behavior when applying etc.
59+
-rollback - Rollback applied modifications.
60+
-global - To use the global toolset, like hMSBuild.
61+
62+
-pkg-version {arg} - Specific package version. Where {arg}:
63+
* 1.0.2 ...
64+
* latest - (keyword) To use latest version;
65+
66+
-debug - To show debug information.
67+
-version - Display version of netfx4sdk.cmd.
68+
-help - Display this help. Aliases: -help -h -?
6269
```
6370

6471
### Samples
@@ -67,4 +74,20 @@ Two modes.
6774
netfx4sdk -mode sys
6875
netfx4sdk -rollback
6976
netfx4sdk -debug -force -mode package
70-
```
77+
netfx4sdk -mode pkg -pkg-version 1.0.2
78+
```
79+
80+
## Download
81+
82+
https://github.com/3F/netfx4sdk/releases/latest
83+
84+
## Build and Use from source
85+
86+
```bat
87+
git clone https://github.com/3F/netfx4sdk.git src
88+
cd src & build & bin\Release\raw\netfx4sdk -help
89+
```
90+
91+
## Contributing
92+
93+
[*netfx4sdk*](https://github.com/3F/netfx4sdk) is waiting for your awesome contributions!

changelog.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,27 @@
22
netfx4sdk - https://github.com/3F/netfx4sdk
33
- - - - - - - - - - - - - - - - - - - - -
44

5+
[1.1] 2023.12.10
6+
7+
* FIXED: Issue #3 incorrect -mode sys handling on Windows XP.
8+
9+
* FIXED: `Invalid switch - /B` in older xcopy. Part of issue #3.
10+
11+
* NEW: Implemented `-pkg-version` to set specific package version.
12+
13+
* NEW: Storing multiple versions in a packages folder.
14+
15+
* NEW: `pkg` and `system` mode aliases.
16+
17+
* NEW: `-global` key to use the global toolset instead of the local,
18+
like hMSBuild.
19+
20+
* CHANGED: Redirected warn messages into stderr stream.
21+
22+
* CHANGED: Default remote package 1.0.2 up to 1.0.3.
23+
To use the latest version, call `-pkg-version latest`
524

6-
[v1.0] 2021.12.31
25+
[1.0] 2021.12.31
726

827
* First version. Two modes.
928
.NET Framework 4.0 Developer Pack (SDK) for Visual Studio 2022+

netfx4sdk.cmd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off & echo Incomplete script. Compile it first via 'build.bat' - github.com/3F/netfx4sdk 1>&2 & exit /B 1
22

33
:: netfx4sdk $-version-$
4-
:: Copyright (c) 2021 Denis Kuzmin [ x-3F@outlook.com ] github/3F
4+
:: Copyright (c) 2021-2023 Denis Kuzmin {x-3F@outlook.com} github/3F
55
:: Copyright (c) netfx4sdk contributors https://github.com/3F/netfx4sdk
66

77
set "dp0=%~dp0"
@@ -21,7 +21,7 @@ goto commands
2121

2222
echo.
2323
@echo netfx4sdk $-version-$
24-
@echo Copyright (c) 2021 Denis Kuzmin [ x-3F@outlook.com ] github/3F
24+
@echo Copyright (c) 2021-2023 Denis Kuzmin ^<x-3F@outlook.com^> github/3F
2525
@echo Copyright (c) netfx4sdk contributors https://github.com/3F/netfx4sdk
2626
echo.
2727
echo .........
@@ -35,15 +35,15 @@ echo * pkg - Alias to `package`
3535
echo.
3636
echo -force - Aggressive behavior when applying etc.
3737
echo -rollback - Rollback applied modifications.
38-
echo -global - To use the global toolset instead of the local, like hMSBuild.
38+
echo -global - To use the global toolset, like hMSBuild.
3939
echo.
4040
echo -pkg-version {arg} - Specific package version. Where {arg}:
4141
echo * 1.0.2 ...
42-
echo * latest - (keyword) To get latest version;
42+
echo * latest - (keyword) To use latest version;
4343
echo.
44-
echo -debug - To show debug information.
45-
echo -version - Display version of %~nx0.
46-
echo -help - Display this help. Aliases: -help -h -?
44+
echo -debug - To show debug information.
45+
echo -version - Display version of %~nx0.
46+
echo -help - Display this help. Aliases: -help -h -?
4747
echo.
4848
echo ...........
4949
echo About modes
@@ -68,6 +68,7 @@ echo.
6868
echo netfx4sdk -mode sys
6969
echo netfx4sdk -rollback
7070
echo netfx4sdk -debug -force -mode package
71+
echo netfx4sdk -mode pkg -pkg-version 1.0.2
7172

7273
goto endpoint
7374

0 commit comments

Comments
 (0)