-
Notifications
You must be signed in to change notification settings - Fork 520
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
Topshelf debug issue #1830
Comments
What is the difference in the vbproj? On Jul 22, 2016 9:35 PM, "Waqas Ahmed" [email protected] wrote:
|
Could you make sure that the file name is just |
Mhh scratch that, you are able to compile. Could you check the diff of vbproj file when you use nuget and paket, maybe topshelf has some special target which aren't caught by paket for some reason. |
Hi, i am attaching project file created with Paket and Nuget. Hopefully it would help |
@tigerclawn82 is there anything under packages\Topshelf in your working copy? |
@forki that is how paket reference the package: <Choose>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v3.5' Or $(TargetFrameworkVersion) == 'v4.0')">
<ItemGroup>
<Reference Include="Topshelf">
<HintPath>..\packages\Topshelf\lib\net35\Topshelf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
<ItemGroup>
<Reference Include="Topshelf">
<HintPath>..\packages\Topshelf\lib\net40-full\Topshelf.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
</Choose> it is strange that framework 4.0 seems to overlap both net-35 and >= 4 conditions. nuget <Reference Include="Topshelf, Version=3.3.154.0, Culture=neutral, PublicKeyToken=b800c4cfcdeea87b, processorArchitecture=MSIL">
<HintPath>..\packages\Topshelf.3.3.1\lib\net40-full\Topshelf.dll</HintPath>
<Private>True</Private>
</Reference> |
@tigerclawn82 for now I think if you add |
(in |
This looks like the net40-client and net40 quirk :) |
adding framework: >= net40 in paket.depedencies didn't help. I guess, i should stick with nuget reference untill i didn't get any work around. I am using Paket with FAKE to streamline CI/CD and i wanted to only use Paket. It would really appreciate to get any workaround to only stick with paket |
i am targetting .net40 but topshelf is available for .net35 |
@tigerclawn82 did you run paket install after changin Another work around would be to remove Topshelf from |
Will take a look at the repro tomorrow On Jul 25, 2016 6:25 PM, "Gauthier Segay" [email protected] wrote:
|
from what I can see the referenced topshelf looked good. I think what I need is a real repro sample. Can you please attach a zipped full solution that uses paket and doesn't work. Also please describe what you do to debug. I think I need very detailed steps here since currently I can't see any issue. |
It just doesn't work. I tried adding manual reference from net35 after suggestion from @smoothdeveloper but it didn't work and i have to add reference from net40-full then it worked. I am attaching sample solution, hopefully it will help. Thanks |
I think I found something strange. Can you please go to line 57 in TopshelfService.csproj and try to change
to
does this solve the issue? It looks like |
oups. I meant change that line to
|
I think I found the bug. working on a fix |
thanks @forki |
fix is underway. will take about 15min to pass all integration tests. |
please retry with latest and let me know if things work |
yeah, thanks. Its working fine now. I really appreciate your help. |
Unfortunately I introduced a new bug. This is now fixed, but can you please verify that 3.9.6 still works for you? |
yeah, v3.9.6 is also working fine. |
Hi, got bitten by this. I have targetted .net framework 4 in Project. I had framework: >= net40 in paket.dependencies but now i changed that to framework: net40. Now, Topshelf references are again messed up. Before i had following in csproject
But now, its been changed to
Its not good, it should include net40-full\Topshelf.dll, as for framework: net40 both net35 and net40-full folders are available. Thanks |
please use net40-full in the deps file |
Description
Installed Topshelf pinned to specific version via Paket having project based paket.references and i was not able to install/debug but able to build successfully.
Repro steps
Expected behavior
Package should be added as reference and should be able run as normal as if i added via Nuget
Actual behavior
Package was added as dependency but was not able to debug, i added via nuget and then was able to Debug as usual.
Known workarounds
Add topshelf via Nuget and everything should work as expected.
Related information
The text was updated successfully, but these errors were encountered: