I have a Xamarin.Forms Tizen project for a Samsung watch. When I compile it with the Visual Studio 2017, it works correctly. The resulting .tpk archive is 6500 kB large and contains all the data. But when I open the project in the Visual Studio 2019 and select the Release, the resulting .tpk archive is only 425 kB large. It cannot be used in the watch, or started in the simulator.
When I open the Release folder, I can see that the /tpkroot/bin folder contains only one .dll file of the main project. Other projects in the solutions are not there, also the referenced Nuget libraries are not there. When I unzip the .tpk file, I can also see that it contains only one .dll file (see the image).
My target framework is Tizen 4.0, compiled with the Tizen.NET 5.0.0, Microsoft.CSharp 4.7.0, Xamarin.Forms 4.8.0
What has changed in the Visual Studio 2019? How can I make it work?
I found that I can add this line into the project file:
<PropertyGroup> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> </PropertyGroup>
This copies all the needed libraries into the release folder, but not into the /tpkroot/bin and into the .tpk file. We need to compile the app with the Visual Studio 2019, it's installed on our build servers.