GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Into3D/SyncNuGetPackages.py at main · jakedowns/Into3D Expand file tree/ Copy pathSyncNuGetPackages.pyMore file actions executable file ·41 lines (37 loc) · 1.68 KB / Copy pathSyncNuGetPackages.pyFile metadata and controlsexecutable file ·41 lines (37 loc) · 1.68 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 import os import shutil # Folder containing NuGet packages nuget_folder = "./Packages" # Folder to collect the preferred DLLs preferred_dlls_folder = "./Assets/Plugins/SyncedNuGetDLLs" # list of frameworks to check in order check_frameworks = ["netstandard2.1", "netstandard2.0", "netstandard1.3", "netstandard1.1", "net472", "net462", "net461", "net46", "net45", "netcoreapp2.1", "netcoreapp2.0"] for root, dirs, files in os.walk(nuget_folder): for dir in dirs: if dir.startswith("lib"): lib_folder = os.path.join(root, dir) package_name = os.path.basename(root) found_match = False for framework in check_frameworks: if framework in os.listdir(lib_folder): for file in os.listdir( os.path.join(lib_folder, framework)): if file.endswith(".dll"): shutil.copy( os.path.join( lib_folder, framework, file), preferred_dlls_folder) print( f"{framework} | {package_name}") found_match = True break if found_match: break if found_match: continue if not found_match: print(f"\nError: Preferred framework not found for package {package_name}.") print("Available frameworks in lib folder:", os.listdir(lib_folder)) print("\n") |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |