Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs

Issue 11145025: Only store major version of AddIn in VS project file (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Connect.cs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
diff --git a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
index 94dff83c2641588b12fba54347c261b7476bfd48..cdc93e7bebbcd22e4c90d917001eb683539f797e 100644
--- a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
+++ b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
@@ -23,6 +23,10 @@ namespace NativeClientVSAddIn
/// <returns>True if project is a Visual C/C++ project.</returns>
public static bool IsVisualCProject(Project proj)
{
+ if (proj.Properties == null)
+ {
+ return false;
+ }
foreach (Property prop in proj.Properties)
{
if (prop.Name == "Kind")
« no previous file with comments | « visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Connect.cs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698