<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:Visual Studio 2022 Unit Tests and DPC++ Compiler in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490858#M3111</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting on Intel communities.&lt;/P&gt;&lt;P&gt;Could you please share the following details so that we can understand and try to reproduce the issue on our end and help you resolve your issue?&lt;/P&gt;&lt;P&gt;1. The complete code you are using.&lt;/P&gt;&lt;P&gt;2. The steps you have followed so far.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 29 May 2023 11:00:25 GMT</pubDate>
    <dc:creator>VaishnaviV_Intel</dc:creator>
    <dc:date>2023-05-29T11:00:25Z</dc:date>
    <item>
      <title>Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490482#M3110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can create a new oneAPI Project in Visual Studio 2022 Professional and get the example code to run. I want to be able to write Unit Tests for the math work that I am doing. I want to be able create a Native Unit Test Project using the native Microsoft CppUnitTest framework. This is all done in C++. I have created a&amp;nbsp;Native Unit Test Project fine and the Tests Solutions will find Tests for if I don't include the new oneAPI Project that I have created and that is fine. If I create another Test Project, add the new oneAPI project as a reference and create a simple test I keep getting the following error when I switch the project to the DPC++ compiler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;gt;lld-link: : error : could not open 'x64\Microsoft.VisualStudio.TestTools.CppUnitTestFramework.lib': no such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried adding the directory for the library in all the obvious places and the Unit Test Compiles and link when I don't have reference to DPC++ project and a basic dummy test in it. Could some give me some advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shannon&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 19:38:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490482#M3110</guid>
      <dc:creator>ShannonF1</dc:creator>
      <dc:date>2023-05-26T19:38:13Z</dc:date>
    </item>
    <item>
      <title>Re:Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490858#M3111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting on Intel communities.&lt;/P&gt;&lt;P&gt;Could you please share the following details so that we can understand and try to reproduce the issue on our end and help you resolve your issue?&lt;/P&gt;&lt;P&gt;1. The complete code you are using.&lt;/P&gt;&lt;P&gt;2. The steps you have followed so far.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 May 2023 11:00:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490858#M3111</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-05-29T11:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490898#M3112</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a attached a sample solution that has a Unit Test Project. If unzip the solution, open it and rebuild you should be able to select Test-&amp;gt;'Run All Tests' then select Test-&amp;gt;'Test Explorer' and see the following if you you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonF1_0-1685373066295.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42031i8514526A413FF5C5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ShannonF1_0-1685373066295.png" alt="ShannonF1_0-1685373066295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you select the Intel oneAPI compiler for each of the projects in the solution as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonF1_1-1685373168425.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42032iFF0FDFF989B6D411/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ShannonF1_1-1685373168425.png" alt="ShannonF1_1-1685373168425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you solution explorer should look like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonF1_3-1685373250897.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42034i67763D3133EF5B25/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ShannonF1_3-1685373250897.png" alt="ShannonF1_3-1685373250897.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then see the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShannonF1_4-1685373290379.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42035i3A55EEDA58487766/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ShannonF1_4-1685373290379.png" alt="ShannonF1_4-1685373290379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shannon&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 15:15:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1490898#M3112</guid>
      <dc:creator>ShannonF1</dc:creator>
      <dc:date>2023-05-29T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1492860#M3120</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing your code and the steps you have followed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your screenshots, we were able to see that you didn’t change the platform toolset to Intel DPC++ 2023. So, please try to change it to Intel DPC++ 2023 by going to the Project properties-&amp;gt; Configuration properties-&amp;gt; General-&amp;gt; Platform Toolset (change it to Intel DPC++ 2023).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaishnaviV_Intel_0-1686127930170.png" style="width: 618px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42292iC3E011032012D1F2/image-dimensions/618x323?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="618" height="323" role="button" title="VaishnaviV_Intel_0-1686127930170.png" alt="VaishnaviV_Intel_0-1686127930170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a workaround copy Microsoft.VisualStudio.TestTools.CppUnitTestFramework.lib to the folder where UnitTest3.sln is present.&lt;/P&gt;
&lt;P&gt;Please find the below screenshots for the output of your code with Intel DPC++ 2023 as a platform toolset in both &lt;STRONG&gt;debug and release modes&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaishnaviV_Intel_0-1685959842234.png" style="width: 676px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42238i6551C8D80D5F3F8E/image-dimensions/676x360?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="676" height="360" role="button" title="VaishnaviV_Intel_0-1685959842234.png" alt="VaishnaviV_Intel_0-1685959842234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaishnaviV_Intel_1-1685959863027.png" style="width: 676px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/42239i86BFCAEB88D827B6/image-dimensions/676x359?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="676" height="359" role="button" title="VaishnaviV_Intel_1-1685959863027.png" alt="VaishnaviV_Intel_1-1685959863027.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please let us know if you still face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:53:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1492860#M3120</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-06-07T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re:Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1494340#M3130</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you.&lt;/P&gt;&lt;P&gt;Has the information provided above helped? If yes, could you please confirm whether we can close this thread from our end?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2023 09:28:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1494340#M3130</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-06-09T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1494488#M3132</link>
      <description>&lt;P&gt;Thanks for the help. It worked. Please close this thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:02:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1494488#M3132</guid>
      <dc:creator>ShannonF1</dc:creator>
      <dc:date>2023-06-09T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re:Visual Studio 2022 Unit Tests and DPC++ Compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1494884#M3133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue got resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vankudothu Vaishnavi.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:45:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Visual-Studio-2022-Unit-Tests-and-DPC-Compiler/m-p/1494884#M3133</guid>
      <dc:creator>VaishnaviV_Intel</dc:creator>
      <dc:date>2023-06-12T11:45:53Z</dc:date>
    </item>
  </channel>
</rss>

