-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot setup mixed framework correctly #1523
Comments
Your deps file should look like this:
you need to specify both native and net452 since otherwise the resolver would not check all dependencies. That said there was still a bug and it's fixed in latest. |
Thanks for the fix! I found another problem after add native to framework. For some .net package, before adding native, the choose item is like this: <Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5.2'">
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose> After I added native to framework, it looks like this: <Choose>
<When Condition="($(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5.2') Or (true) Or ('$(Configuration)|$(Platform)'=='Debug|Win32') Or ('$(Configuration)|$(Platform)'=='Debug|arm') Or ('$(Configuration)|$(Platform)'=='Debug|x64') Or ('$(Configuration)|$(Platform)'=='Release|Win32') Or ('$(Configuration)|$(Platform)'=='Release|x64') Or ('$(Configuration)|$(Platform)'=='Release|arm')">
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose> Seems that the condition is always true since there is Could you help look at this issue again? Here is the project for testing. |
yes that But one question: do you expect nunit.framework.dll to be installed for native? |
ok that true thingy is gone. |
@forki We dont expect nunit.framework.dll to be installed for native. The previous example is for a c# project. |
@forki thanks for your fix! |
Is it already enough to make it work for you?
|
I think so. So it will work for both native and .net packages? |
Just let me know if you find other issues. I want to make it work with
|
@forki I am not sure why it will add <Choose>
<When Condition="($(TargetFrameworkIdentifier) == '.NETFramework' And $(TargetFrameworkVersion) == 'v4.5.2') Or ('$(Configuration)|$(Platform)'=='Debug|Win32') Or ('$(Configuration)|$(Platform)'=='Debug|arm') Or ('$(Configuration)|$(Platform)'=='Debug|x64') Or ('$(Configuration)|$(Platform)'=='Release|Win32') Or ('$(Configuration)|$(Platform)'=='Release|x64') Or ('$(Configuration)|$(Platform)'=='Release|arm')">
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose> |
Yeah that's not really correct. Needs some work...
|
Hmm, are you going to fix it? |
Sure, but is it currently breaking you?
|
I already had a fix, but that made trouble elsewhere so I reverted that. Sure, but is it currently breaking you? Hmm, are you going to fix it? — Reply to this email directly or view it on GitHub |
it's not breaking me though. We have a lot of projects, so we don't want to change a lot, lol |
Ah I now understand what you mean. It's the diff in existing projects I think I will revisit this over the weekend...
|
Thanks a lot:) |
done. please give it a try |
Hi @forki, seems that this version will remove the boost dependency again. The test project I attached works well, but not in our production projects. Could you help to take a look? |
mhm integration tests are still green. |
Thanks @forki , it should be fine now. |
? |
Hi,
I am using Paket version 2.52.8.0 to maintain the packages for a solution with mixed framework(.net & native) projects. Paket doesn't setup the project file well for native projects.
Here is the paket.dependencies:
and paket.references
It works perfect for this setting. The dependent project is added to the project file correctly. The project file is like this:
However, when I changed framework to net452 in paket.dependencies, it did not add the dependency
boost
to the project file.So the build is broken because cannot find the boost package. And most of the packages used in my solution is .net packages, and due to some reason, we don't want to separate the paket.dependencies. Any idea about this issue?
Here is the project for testing this issue.
TestPaket.zip
The text was updated successfully, but these errors were encountered: