C
C#16mo ago
mikepattyn

Working with Directory.Build.props.

I am unable to move the packages and the frameworks elements to the Directory.Build.props file in the root of the solution. So when i move the ItemGroup with PackageReference to the root Directory.Build.props the dotnet restore command will not even work. It's as if the entire ItemGroup in the root file is not loaded... When i try to move the TargetFrameworks version to the root file, i get an error similar to: TargetFramework Version not valid: ' ' I have tryed TargetFramework, TargetFrameworks Please advise.
- Flyingdarts.Backend
- Directory.Build.props
- Core
- Flyingdarts.Business
- Flyingdarts.Shared
- Directory.Build.props
- Lambdas
- Flyingdarts.Signalling.OnConnect
- Flyingdarts.Signalling.OnDefault
- Flyingdarts.Signalling.OnDisconnect
- Directory.Build.props
- Flyingdarts.Backend
- Directory.Build.props
- Core
- Flyingdarts.Business
- Flyingdarts.Shared
- Directory.Build.props
- Lambdas
- Flyingdarts.Signalling.OnConnect
- Flyingdarts.Signalling.OnDefault
- Flyingdarts.Signalling.OnDisconnect
- Directory.Build.props
The rest of the properties split up in the Directory.Build.props are working as intended
1 Reply
mikepattyn
mikepattyn16mo ago
kek, thx ChatGPT