Missing project reference in release mode

  • Thread starter Thread starter RollinMan
  • Start date Start date
R

RollinMan

Guest
I am using Visual Studio 2019 Community edition (version 16.6.2) and have run into a problem. When I build my project in debug mode everything works fine BUT when I attempt to build the project in release mode I get CS0234 errors for the following three code lines and the build fails:


using Windows.Devices.Bluetooth;

using Windows.Devices.Bluetooth.GenericAttributeProfile;

using Windows.Devices.Bluetooth.Advertisement;


Further investigation shows that in the debug mode the project has the following project references in debug mode;


>System.Xml.Xpath.Xdocument

>Windows

>WindowBase


and in release mode


>System.Xml.Xpath.Xdocument

>WindowBase


That is the Windows reference is missing, hence the build fails.


Can someone explain how to fix this?

Continue reading...
 
Back
Top