We are building a moderate large UWP application, intent for use only on Windows 10 in x64 platform.
We already disable in .csproj all dependencies on x86, arm and other platform, restricting to x64 our solution.
Whoever, while compiling the application via msbuild or Visual Studio (2017), it requires Nuget packages for arm, x86, arm64.
These other packages are not of any user for us and use space and take time to install. Everywhere in VS, where we find dependencies for other platform other than x64, we disable.
However the project still requires Nuget packages such as:
- runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk
- runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk
- runtime.win10-arm.Microsoft.Net.Native.Compiler
- runtime.win10-x86.Microsoft.Net.Native.Compiler
- runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary
- runtime.win10-x86.Microsoft.Net.Native.SharedLibrary
- runtime.win10-arm.Microsoft.Net.Native.SharedLibrary
- runtime.win10-arm.Microsoft.NETCore.UniversalWindowsPlatform
- runtime.win10-arm64-aot.Microsoft.NETCore.UniversalWindowsPlatform
- .... and so on
Someone was some idea of how to remove such dependencies?
During the compile we use is like this:
msbuild /p:Configuration=Debug /p:Platform='x64' -verbosity:m /p:AppxPackageDir=".\bin" project.csproj