<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:47:34 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-4214] Error in MSbuild publish of Web Project in .NET 4.8</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4214</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;After update driver from version 2.12.x to version 2.16, All continuous integration build that publish web projects fails with an error. Same error happens in local publish.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Driverversion2.16.0&quot;&gt;&lt;/a&gt;Driver version 2.16.0&lt;/h4&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;We have a regular asp.net MVC 4.8 project that we publish with the commandline (publishing within Visual Studio works, only publish with msbuild via commandline fails)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&lt;em&gt;&quot;C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\msbuild.exe&quot; &quot;C:\dev\....\Jarvis.Web.csproj&quot; /nologo /nr:false /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:OutDir=C:\dev\jarvis_deploy\cli /p:configuration=&quot;release&quot;&lt;/em&gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This commandline will fail with the error&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;error&amp;#93;&lt;/span&gt;src\packages\MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3\tools\VSToolsPath\WebApplications\Microsoft.WebApplication.targets(187,5): Error MSB3094: &quot;DestinationFiles&quot; refers to 1 item(s), and &quot;SourceFiles&quot; refers to 2 item(s). They must have the same number of items.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;The error seems to be in .target version that comes in nuget package of driver version 2.16.0, we solved temporarily&#160;the issue using a modified version of the package.&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2070326">CSHARP-4214</key>
            <summary>Error in MSbuild publish of Web Project in .NET 4.8</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="alkampfer@nablasoft.com">Gian Maria Ricci</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Jun 2022 08:03:34 +0000</created>
                <updated>Sat, 28 Oct 2023 11:47:11 +0000</updated>
                            <resolved>Tue, 21 Jun 2022 15:48:32 +0000</resolved>
                                                    <fixVersion>2.16.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4630141" author="xgen-internal-githook" created="Tue, 21 Jun 2022 18:36:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Gian Maria&apos;, &apos;email&apos;: &apos;ricci.gianmaria@gmail.com&apos;, &apos;username&apos;: &apos;alkampfergit&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4214&quot; title=&quot;Error in MSbuild publish of Web Project in .NET 4.8&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4214&quot;&gt;&lt;del&gt;CSHARP-4214&lt;/del&gt;&lt;/a&gt;: Fixed Build target. (#822)&lt;br/&gt;
Branch: v2.16.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/fe1756a870353541bd3e40ab186e4122f2d1accc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/fe1756a870353541bd3e40ab186e4122f2d1accc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4629419" author="xgen-internal-githook" created="Tue, 21 Jun 2022 15:48:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Gian Maria&apos;, &apos;email&apos;: &apos;ricci.gianmaria@gmail.com&apos;, &apos;username&apos;: &apos;alkampfergit&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4214&quot; title=&quot;Error in MSbuild publish of Web Project in .NET 4.8&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4214&quot;&gt;&lt;del&gt;CSHARP-4214&lt;/del&gt;&lt;/a&gt;: Fixed Build target. (#822)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/62fa8e2b6956a095f3515137f663c526d1394c45&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/62fa8e2b6956a095f3515137f663c526d1394c45&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4627489" author="dmitry.lukyanov" created="Mon, 20 Jun 2022 18:14:04 +0000"  >&lt;p&gt;It looks like the issue you&apos;re seeing is related to msbuild &lt;em&gt;preview&lt;/em&gt; version. I don&apos;t see it with released version: 17.0.0.52104, but changes itself looks harmless and correct too.&lt;/p&gt;</comment>
                            <comment id="4622774" author="JIRAUSER1269368" created="Fri, 17 Jun 2022 07:15:18 +0000"  >&lt;p&gt;Thanks a lot, I&apos;ve done a pull request with the modification that made our build starts working again.&lt;/p&gt;

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

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/pull/822&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/pull/822&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4621989" author="dmitry.lukyanov" created="Thu, 16 Jun 2022 20:03:56 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alkampfer%40nablasoft.com&quot; class=&quot;user-hover&quot; rel=&quot;alkampfer@nablasoft.com&quot;&gt;alkampfer@nablasoft.com&lt;/a&gt;, your finding looks correct. We will look at this closely and come back to you.&lt;/p&gt;</comment>
                            <comment id="4619947" author="JIRAUSER1269368" created="Thu, 16 Jun 2022 08:27:40 +0000"  >&lt;p&gt;As you can see in attached image, we found duplicated section in .target msbuild that is included in mongodb.core nuget package, simply removing all duplicated section evertythings starts working again.&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="385177" name="2022-06-16_10-20-51.png" size="249743" author="alkampfer@nablasoft.com" created="Thu, 16 Jun 2022 08:22:40 +0000"/>
                            <attachment id="385178" name="2022-06-16_10-26-12.png" size="242800" author="alkampfer@nablasoft.com" created="Thu, 16 Jun 2022 08:27:44 +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|i0hrao:</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>