-
Notifications
You must be signed in to change notification settings - Fork 46
Cannot create service - must be rewritten using the code contracts binary rewriter #42
Comments
Hi @thnk2wn, Thanks for letting us know, we're currently working on this in the |
Thanks, please let me know when I can try again! |
Hi Geoff, The documentation covers this. Please verify you've followed all the instructions on dev.splunk.com/view/SP-CAAAEYMhttp://dev.splunk.com/view/SP-CAAAEYM, and then let us know if you're still having trouble. Thanks, Matt Tevenan On Sep 29, 2015, at 2:21 PM, Geoff Hudik <[email protected]mailto:[email protected]> wrote: When creating the service I get the following error popup in Visual Studio 2015 Enterprise: "An Assembly (probably "Splunk.Client") must be rewritten using the code contracts binary rewriter (CCRewrite)... And I cannot proceed. Splunk.Client 2.2.0 — |
@mtevenan-splunk Thanks. It would probably be helpful to add a link to that page to the readme. I arrived at this repo via nuget, I wasn't aware of that dev page. |
There shouldn't be, it just requires the rewriter. However, we're in the On Tue, Sep 29, 2015 at 3:00 PM Geoff Hudik [email protected]
|
Hi @thnk2wn, we've just released v2.2.1 addressing this! Thanks for the bug report |
This is still an issue in the v2.2.1 nuget packages. We'll be investigating this some more next week, stay tuned |
It looks like the issue is due to something on the MyGet end. We let MyGet
|
Hi @thnk2wn, We've released v2.2.2 on nuget. |
I came across the same issue where I resolved by rebuilding the entire pcl
|
Hi @muratoflu, Have you tried v2.2.2 from Nuget? It should be fixed in the latest version. |
I am using the latest v2.2.2 from Nuget with VS 2013 and I still get this issue after installing code contracts. |
Have you updated to the latest nuget client?
|
Have VS2015 Nuget v.2.2.2 and still have the same issue. R u guys in Splunk planning to work on this issue soon? |
@EfrainGonzalezBC this should be fixed in later versions. Can you try v2.2.6? |
Hello all, |
Thanks for the update @rahulisola |
@shakeelmohamed No problem. Happy to help. |
I am using VS 2017 and Splunk.Client 2.2.6 still I am getting "An Assembly (probably "Splunk.Client") must be rewritten using the code contracts binary rewriter (CCRewrite)". Please suggest how this can be fixed? Regards, |
Version 2.2.6 does not work, CCRewriter does not work with VS2017, |
Hey splunk! Are you there. |
Hi, |
Hey folks, we've been unable to re-produce the issue in house and that's the main reason we don't have a fix up yet. We're more than happy to accept a pull request if anyone can determine a fix |
Have the same Issue on VS2017 and Splunk.Client 2.2.6 |
Also seeing this on Splunk.Client 2.2.7 from NuGet.org (VS2017/.NET Framework 4.7.1). As a result, I have to use version 2.2.5 as suggested by @Gammeldags (ironically, their username means old in Norwegian) but this gives me warnings with the System.Collections.Immutable :( |
@shakeelmohamed Could this be an issue in your build system? I have investigated this a bit and the only difference I can see which could have an impact is the build system being misconfigured. I will do some more investigation and get back on this. |
People have been reporting issues with this in more modern build systems: microsoft/CodeContracts#476 |
@martinmine It's certainly possible, but unfortunately we do not currently have the bandwidth to investigate this issue |
@shakeelmohamed are you saying you don't have bandwidth to download a newer version of Visual Studio? |
@martinmine As much as it pains me to admit it, yes |
@martinmine I had independently done similar changes as you have in your pull request and it seems to be working for me for basic searches and retrieval with Splunk version 7.0.2 (tested with both VS 2015 and 2017). Can someone from the Splunk team look into martinmine's edits, perform some more exhaustive tests if required and merge with the official package if everything is good? |
@shakeelmohamed Damn, that is resource constrained. How about getting a VM in the cloud to run VS for you or something? |
I have uploaded working libraries to my GitHub repository. It can be found here: |
This is a blocker for migrating our project to .NET Core (need a working library with both a recent Systems.Collections.Immutable and the Code Contract issue resolved). @shakeelmohamed if you don't have time to work on this issue yourself, can you at least merge #79 and release, we're no worse off at this point... |
Hi all, we've merged #79 (huge thanks to @martinmine!). We will look at getting a release out next week, thank you for your patience. |
Hi all, it's been a while, but it looks like this is still broken. While System.Collections.Immutable has been updated to 1.3.1 in the .nuspec and package.config, Splunk.Client.csproj still has a reference to 1.1.37.... |
I've create PR #84 to correct the issue with S.C.I. please review and let me know if you see any issues with this. |
This SDK is deprecated and no longer under active development. |
When creating the service I get the following error popup in Visual Studio 2015 Enterprise:
"An Assembly (probably "Splunk.Client") must be rewritten using the code contracts binary rewriter (CCRewrite)...
And I cannot proceed.
Splunk.Client 2.2.0
The text was updated successfully, but these errors were encountered: