Closed kimbirkelund closed 5 years ago
@kimbirkelund the nuspec file is also pulling all the packages within each platforms respective ../bin/release folders. This is incorrect and should only be pulling the plugin package itself i.e. FormsControls.Base, FormsControls.Base and FormsControls.Base.
<!-- Cross-platform .net standard reference assemblies -->
<file src="..\SourceCode\Lib\FormsControls.Base\bin\Release\netstandard2.0\*.dll" target="lib\netstandard2.0"/>
<!-- Android reference assemblies -->
<file src="..\SourceCode\Lib\FormsControls.Base\bin\Release\netstandard2.0\*.dll" target="lib\MonoAndroid10"/>
<file src="..\SourceCode\Lib\FormsControls.Droid\bin\Release\*.dll" target="lib\MonoAndroid10"/>
<!-- iOS reference assemblies -->
<file src="..\SourceCode\Lib\FormsControls.Base\bin\Release\netstandard2.0\*.dll" target="lib\Xamarin.iOS10" />
<file src="..\SourceCode\Lib\FormsControls.Touch\bin\Release\*.dll" target="lib\Xamarin.iOS10" />
generates:
replaced as:
<!-- Cross-platform .net standard reference assemblies -->
<file src="..\SourceCode\Lib\FormsControls.Base\bin\Release\netstandard2.0\FormsControls.Base.dll" target="lib\netstandard2.0"/>
<!-- Android reference assemblies -->
<file src="..\SourceCode\Lib\FormsControls.Droid\bin\Release\FormsControls.Base.dll" target="lib\MonoAndroid10"/>
<file src="..\SourceCode\Lib\FormsControls.Droid\bin\Release\FormsControls.Droid.dll" target="lib\MonoAndroid10"/>
<!-- iOS reference assemblies -->
<file src="..\SourceCode\Lib\FormsControls.Touch\bin\Release\FormsControls.Base.dll" target="lib\Xamarin.iOS10" />
<file src="..\SourceCode\Lib\FormsControls.Touch\bin\Release\FormsControls.Touch.dll" target="lib\Xamarin.iOS10" />
generates:
The below handles the dependencies:
<dependencies>
<dependency id="Xamarin.Forms" version="3.4.0.1008975" />
</dependencies>
I've updated the nuspec, but because PackageReferences are used instead of packages.config, the files from the dependencies aren't actually copied to the output directory at build time.
It is however cleaner this way. Personally I'd add the pdbs too, but I guess that is up to @AlexandrNikulin .
@kimbirkelund Thanks! I will check it today and update nuget package
Great. Let me know if you need more input.
@kimbirkelund Sure, thanks
This PR solves issue #48 by 1) Migrating to PackageReference approach for remaining projects and 2) Remove unnecessary dependencies.
There may be more clean up that can be performed, but this appears to make the consuming project able to build whild still performing the animations.