In one of my projects, I am encountering some very strange behavior.
I have the following class which I am attempting to compile into a Win32 Debug DLL. The last member shown here is a `websocket_client`. This is the only place in a large codebase where the CPP Rest SDK is being used. When this member is present in my class, the files `cpprest120d_xp_2_4.dll` and `cpprest120d_xp_2_4.pdb` are NOT copied to the output folder. If I comment out this line (which means I have not used the SDK at all, other than including `cpprest/ws_client.h`), the files are indeed copied to the output folder. Furthermore, it doesn't seem to matter where I put that code -- I can take the same line shown below and put it anywhere (a method body, for example) and the result is the same. The behavior only occurs on a Debug build -- a Release build copies the files correctly with or without this line.
If this doesn't make any sense, I understand. I haven't found anything in the Nuget scripts for CPP Rest SDK that could possibly be affected by this.
It's possible that this just started occurring recently. How can I get release notes for the Nuget distribution?
```
class ServiceHostClient
{
//
// Lifecycle
//
public:
ServiceHostClient();
private:
ServiceHostClient(const ServiceHostClient&);
public:
~ServiceHostClient();
//
// Connection
//
public:
void Connect(const std::wstring& endpoint);
void Disconnect();
//
// Internals
//
private:
bool _is_connected;
web::websockets::client::websocket_client _client;
};
```
I have the following class which I am attempting to compile into a Win32 Debug DLL. The last member shown here is a `websocket_client`. This is the only place in a large codebase where the CPP Rest SDK is being used. When this member is present in my class, the files `cpprest120d_xp_2_4.dll` and `cpprest120d_xp_2_4.pdb` are NOT copied to the output folder. If I comment out this line (which means I have not used the SDK at all, other than including `cpprest/ws_client.h`), the files are indeed copied to the output folder. Furthermore, it doesn't seem to matter where I put that code -- I can take the same line shown below and put it anywhere (a method body, for example) and the result is the same. The behavior only occurs on a Debug build -- a Release build copies the files correctly with or without this line.
If this doesn't make any sense, I understand. I haven't found anything in the Nuget scripts for CPP Rest SDK that could possibly be affected by this.
It's possible that this just started occurring recently. How can I get release notes for the Nuget distribution?
```
class ServiceHostClient
{
//
// Lifecycle
//
public:
ServiceHostClient();
private:
ServiceHostClient(const ServiceHostClient&);
public:
~ServiceHostClient();
//
// Connection
//
public:
void Connect(const std::wstring& endpoint);
void Disconnect();
//
// Internals
//
private:
bool _is_connected;
web::websockets::client::websocket_client _client;
};
```