<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:15 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2332] Error installing MongoDB.Bson package from nuget</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2332</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I&apos;ve create an empty .Net Core console application. Then I added using NuGet:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;MongoDB.Driver : Ok&lt;/li&gt;
	&lt;li&gt;MongoDB.Driver.Core: Ok&lt;/li&gt;
	&lt;li&gt;MongoDB.Bson: I get the following error:&lt;/li&gt;
&lt;/ul&gt;


&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Detected package downgrade: System.Reflection.Emit.Lightweight from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.&#160;&#160;TestMongoDb -&amp;gt; MongoDB.Bson 2.7.0 -&amp;gt; NETStandard.Library 1.6.1 -&amp;gt; System.Linq.Expressions 4.3.0 -&amp;gt; System.Reflection.Emit.Lightweight (&amp;gt;= 4.3.0)&#160;&#160;TestMongoDb -&amp;gt; MongoDB.Bson 2.7.0 -&amp;gt; System.Reflection.Emit.Lightweight (&amp;gt;= 4.0.1)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;The package installation rolls back. There&apos;s nothing more I can do.&lt;/p&gt;</description>
                <environment>Windows 10 x64, VS 2017, net core 2.1.2</environment>
        <key id="572754">CSHARP-2332</key>
            <summary>Error installing MongoDB.Bson package from nuget</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="vincent.kam@mongodb.com">Vincent Kam</assignee>
                                    <reporter username="Bodom">Matteo Mosca [X]</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Jul 2018 08:03:08 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:57 +0000</updated>
                            <resolved>Tue, 5 Feb 2019 21:23:09 +0000</resolved>
                                    <version>2.7.0</version>
                                    <fixVersion>2.8.0</fixVersion>
                                    <component>Build</component>
                                        <votes>2</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="2172440" author="ihssanoof" created="Wed, 6 Mar 2019 13:04:02 +0000"  >&lt;p&gt;I had the same problem on .Net Core 2.2 when installing MongoDB.Bson v2.7.2&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mdmoazzem&quot; class=&quot;user-hover&quot; rel=&quot;mdmoazzem&quot;&gt;mdmoazzem&lt;/a&gt;&apos;s&#160;workaround fixed the issue.&#160;&lt;/p&gt;</comment>
                            <comment id="2137511" author="vincent.kam" created="Mon, 4 Feb 2019 23:00:22 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mrossini%40maskott.com&quot; class=&quot;user-hover&quot; rel=&quot;mrossini@maskott.com&quot;&gt;mrossini@maskott.com&lt;/a&gt; et al.,&lt;/p&gt;

&lt;p&gt;My apologies for the delay in responding to you all here: our backlog was a little flooded, but we&apos;re working towards clearing it!&lt;/p&gt;

&lt;p&gt;I can confirm that the current workaround is to install the &lt;tt&gt;System.Reflection.Emit.Lightweight&lt;/tt&gt; package from NuGet. We&apos;ve fixed this dependency issue in master, so the next release (2.8.0) we make should contain the fix.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
 Vincent&lt;/p&gt;</comment>
                            <comment id="2110692" author="karl.vonrichter@gmail.com" created="Thu, 10 Jan 2019 02:05:55 +0000"  >&lt;p&gt;I had the same problem on .Net Core 2.2 when installing MongoDB.Bson v2.7.2&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mdmoazzem&quot; class=&quot;user-hover&quot; rel=&quot;mdmoazzem&quot;&gt;mdmoazzem&lt;/a&gt;&apos;s&#160;workaround fixed the issue.&#160;&lt;/p&gt;</comment>
                            <comment id="2101817" author="felipebsouza" created="Fri, 28 Dec 2018 18:41:50 +0000"  >&lt;p&gt;I had the same problem.&lt;/p&gt;

&lt;p&gt;Installing &quot;System.Reflection.Emit.Lightweight&quot; NuGet package, like&#160;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mdmoazzem&quot; class=&quot;user-hover&quot; rel=&quot;mdmoazzem&quot;&gt;mdmoazzem&lt;/a&gt;&#160;said, solved it.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="2044884" author="mdmoazzem" created="Mon, 29 Oct 2018 14:59:34 +0000"  >&lt;p&gt;I&apos;ve had the same issue. Instead of Nikita&apos;s workaround, I added System.Reflection.Emit.Lightweight to the nuget packages. Doing so let me get mongodb.driver.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/199776/199776_image-2018-10-29-09-58-17-541.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="2043033" author="rbugginsvia" created="Fri, 26 Oct 2018 09:00:12 +0000"  >&lt;p&gt;Same Issue here on MongoDB.Bson 2.7.0&lt;/p&gt;</comment>
                            <comment id="2018677" author="mrossini@maskott.com" created="Sun, 30 Sep 2018 22:47:00 +0000"  >&lt;p&gt;Same issue here. We are in the process of migrating from .NET framework to .NET Core, and this is an issue we would like to see fixed. Very simple to reproduce: create a new .NET Core 2.1 class library, and simply add a reference to the nuget package MongoDB.Bson.&lt;/p&gt;

&lt;p&gt;If this is of any help, we are using Visual Studio 2017 15.8.5. The issue exists for MongoDB.Bson 2.5.0+ (not present in 2.4.4).&lt;/p&gt;

&lt;p&gt;MongoDB.Driver team needs to give a little feedback on this type of issue (we have another issue regading .NET 4.7.1, and had no feedback either). At least some message to acknowledge the issue, and ideally give a target version/date for the fix. The workaround suggested by @Nikita Kudin is not acceptable, I don&apos;t want to include such a massive dependency in a simple class library.&lt;/p&gt;</comment>
                            <comment id="1988618" author="nikita.kudin" created="Wed, 29 Aug 2018 11:13:29 +0000"  >&lt;p&gt;I have the same major error.&#160;&lt;/p&gt;

&lt;p&gt;I am using .NET Core 2.1 + Azure Service Fabric Cluster&lt;/p&gt;

&lt;p&gt;Any updates, guys?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;UPDATE:&lt;br/&gt;
I fixed it by adding&#160;Microsoft.AspNetCore.All from nuget. It&apos;s crazy, but works.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="609062">CSHARP-2394</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="199775" name="image-2018-10-29-09-52-52-480.png" size="5454" author="mdmoazzem" created="Mon, 29 Oct 2018 14:53:59 +0000"/>
                            <attachment id="199776" name="image-2018-10-29-09-58-17-541.png" size="6328" author="mdmoazzem" created="Mon, 29 Oct 2018 14:59:24 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htfhpj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>