© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2mo ago•
24 replies
Աղҟղօաղ

[UnitTest] multi framework target dynamically creating folder structure based on framework

visual studio
Let's say i have a test project with .net 8,9 and 10 as targets and i wanted to test through all of them with different starting parameters.
That means i need a folder structure for each framework. To make life easier i would simply copy the structure to each framework location.
After that i need the program to create certain files (or not) and then test if it was done correctly.

My problem now is, that i don't know how to actually get multiple framework dynamically.
I know i could just hardcode it, but if possible, i would do it dynamically based on the targetframeworks used.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Folder Structure
C#CC# / help
17mo ago
Cannot find governing FrameworkElement or FrameworkContentElement for target element
C#CC# / help
4y ago
✅ Multi-target, wrong version
C#CC# / help
3y ago
Costura.fody and folder structure
C#CC# / help
5mo ago