Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 7f0fbf9

Browse files
authored
Merge pull request #16 from episerver/user/jb/doc-to-use-net5
Added documentation to target net5 for now
2 parents 6b9883e + a606b16 commit 7f0fbf9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ These extensions expand the upgrade-assistant tools's functionality to make Opti
99
Install the latest vesion of the upgrade-assistant `dotnet tool install -g upgrade-assistant` or upgrade `dotnet tool update -g upgrade-assistant`
1010

1111

12-
Grab the latest release from [here](https://github.com/episerver/upgrade-assistant-extensions/releases) and unzip the file to a location of your computer (ex C:\temp\epi.source.updater). Technically you should be able to point the zip file instead of extracting but there seems to be a bug in upgrade-assisant at the moment for that.
12+
Grab the latest release from [here](https://github.com/episerver/upgrade-assistant-extensions/releases) and unzip the file to a location of your computer (ex C:\temp\epi.source.updater). Technically you should be able to point the zip file instead of extracting but there seems to be a bug in upgrade-assistant at the moment for that.
1313

1414
## Using the extension
15+
Some of the source code upgrade code analyzers requires that packages referenced are available in selected target framework. So for now when CMS targets net5.0 the recommendation is to target net5.0 when converting as well (target framework can be set to net6.0 after conversion is completed). To achieve this first set environment variable like:
16+
```
17+
set DefaultTargetFrameworks__LTS=net5.0
18+
```
19+
then run upgrade-assistant with flag *--target-tfm-support LTS*, like:
1520

1621
```
17-
upgrade-assistant upgrade {projectName}.csproj --extension "{extensionPath}" --ignore-unsupported-features
22+
upgrade-assistant upgrade {projectName}.csproj --extension "{extensionPath}" --ignore-unsupported-features --target-tfm-support LTS
1823
```
1924

0 commit comments

Comments
 (0)