Details
-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
Description
The in case the Packages directory is not available, yet (cleanup or new clone) or any package is missing (not downloaded yet) it might happen that the first try to build the solutions fails.
The reason for the are potential targets that are being imported to a {{*.csproj}} when then it is being opened.
Example: {{Anysee.csproj}} is referring to the anysee.ciapi.1.0.0 package and it's targets file
{code:xml}
<Project>
...
<ItemGroup>
<None Include="build.targets" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="build.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Import Project="..\..\..\..\..\..\..\Packages\anysee.ciapi.1.0.0\build\anysee.ciapi.targets" Condition="Exists('..\..\..\..\..\..\..\Packages\anysee.ciapi.1.0.0\build\anysee.ciapi.targets')" />
</Project>
{code}
The {{anysee.ciapi.targets}} is responsible for copying the {{CIAPI.dll}} to the {{TargetDir}} of the project that is importing it. In that case {{Anysee.csproj}}.
If the package and it's targets' file does not exist, yet this file is being ignored.
When compiling the Anysee.csproj, it's {{build.targets}} file expects that the {{CIAPI.dll}} in {{TargetsDir}}:
{Code:xml}
<ItemGroup>
<References Include="$(TargetDir)CIAPI.dll" />
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(PluginFiles)" DestinationFolder="$(PluginDestination)" />
<Copy SourceFiles="@(References)" DestinationFolder="$(PluginDestination)Resources\" />
</Target>
{Code}
Starting a second run to build the source, while the packages are already existing should not throw that error.
The reason for the are potential targets that are being imported to a {{*.csproj}} when then it is being opened.
Example: {{Anysee.csproj}} is referring to the anysee.ciapi.1.0.0 package and it's targets file
{code:xml}
<Project>
...
<ItemGroup>
<None Include="build.targets" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="build.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Import Project="..\..\..\..\..\..\..\Packages\anysee.ciapi.1.0.0\build\anysee.ciapi.targets" Condition="Exists('..\..\..\..\..\..\..\Packages\anysee.ciapi.1.0.0\build\anysee.ciapi.targets')" />
</Project>
{code}
The {{anysee.ciapi.targets}} is responsible for copying the {{CIAPI.dll}} to the {{TargetDir}} of the project that is importing it. In that case {{Anysee.csproj}}.
If the package and it's targets' file does not exist, yet this file is being ignored.
When compiling the Anysee.csproj, it's {{build.targets}} file expects that the {{CIAPI.dll}} in {{TargetsDir}}:
{Code:xml}
<ItemGroup>
<References Include="$(TargetDir)CIAPI.dll" />
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(PluginFiles)" DestinationFolder="$(PluginDestination)" />
<Copy SourceFiles="@(References)" DestinationFolder="$(PluginDestination)Resources\" />
</Target>
{Code}
Starting a second run to build the source, while the packages are already existing should not throw that error.
Attachments
Issue Links
- relates to
-
TVLIB-6 Remove KNCBDACTRL.dll from git repo and add reference to a NuGet package
-
- Testing & CodeReviews
-
-
TVLIB-7 Remove TbsCIapi.dll from git repo and add reference to a NuGet package
-
- Testing & CodeReviews
-
-
TVLIB-8 Remove TeVii.dll from git repo and add reference to a NuGet package
-
- Testing & CodeReviews
-
-
TVLIB-9 Remove ttBdaDrvApi_Dll.dll from git repo and add reference to a NuGet package
-
- Testing & CodeReviews
-
-
TVLIB-13 Prepare TVE35 to use NuGet packages
-
- Open
-
-
TVLIB-5 Remove CIAPI.dll from git repo and add reference to a NuGet package
-
- Testing & CodeReviews
-
(1 relates to)