gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
119 stars 34 forks source link

Unique ID for Android VS project type (Project.Kind property) #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As I understand, the current vs-android Visual Studio 2010 extension utilizes 
built-in project type (vcxproj), extending it with additional Platform Toolset 
for Android. Thus, currently, while trying to identify the type of the project 
through Project.Kind interface 
(http://msdn.microsoft.com/en-us/library/x73yk4sh(v=VS.100).aspx), this 
interfaces returns the GUID which belongs to the Visual C++ type (as in 
http://msdn.microsoft.com/en-us/library/hb23x61k(v=vs.80).aspx) 

A lack of unique GUID for the android project type could cause potential 
conflicts with other existing VS2010 IDE extensions utilizing VS2010 
extensibility API for obtaining the properties of projects which are loaded 
into VS2010, as the android project itself could not be distinguished from the 
original vcxproj one. 

For example, the "OpenMPSupport" field is missing from the android project 
structure, so trying to obtain this field expectedly leads to an exception, as 
the lack of a unique GUID prevents identifying the android project as the 
incompatible one.

Original issue reported on code.google.com by eremeevP@gmail.com on 10 Jan 2012 at 1:35

GoogleCodeExporter commented 9 years ago
Are you sure that changing this doesn't prevent the project from working 
correctly within the Visual Studio IDE?

Have you attempted to modify vs-android to return the different, unique 
'Project.Kind'? I'd certainly accept and integrate any sort of patch you have.

A change away from the vcxproj format also seems like it would prevent a user 
keeping a Win32 and Android version of their application within one, single 
.vcxproj file.

Original comment by gavin.dj.pugh on 12 Jan 2012 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by gavin.dj.pugh on 12 Jan 2012 at 12:32

GoogleCodeExporter commented 9 years ago
The fact is that the current vs-android projects are already not entirely 
within the vcxproj format, as their structure is different from it (the missing 
OpenMPSupport for example), but they are still identified with the original 
GUID. 

As far as I know, IDE will correctly operate with user defined unique project 
types (for instance Intel C++ compiler does have such project types for VS), 
but currently I am unable to submit any patches for vs-android.

Original comment by eremeevP@gmail.com on 12 Jan 2012 at 12:57