add_compile_options($<$<CONFIG:Debug>:/MTd>)
else()
add_compile_options(-fPIC)
+ add_compile_options(-fvisibility=hidden)
endif()
-add_compile_options(-fvisibility=hidden)
-
include(../setup.cmake)
# Include directories
project(apphost)
set(DOTNET_HOST_EXE_NAME "apphost")
-add_compile_options(-fvisibility=hidden)
-
# Add RPATH to the apphost binary that allows using local copies of shared libraries
# dotnet core depends on for special scenarios when system wide installation of such
# dependencies is not possible for some reason.
cmake_minimum_required (VERSION 2.6)
project(dotnet)
set(DOTNET_HOST_EXE_NAME "dotnet")
-add_compile_options(-fvisibility=hidden)
set(SOURCES
../../fxr/fx_ver.cpp)
include(../exe.cmake)
add_compile_options($<$<CONFIG:Debug>:/MTd>)
else()
add_compile_options(-fPIE)
+ add_compile_options(-fvisibility=hidden)
endif()
include(../../setup.cmake)
add_compile_options($<$<CONFIG:Debug>:/MTd>)
else()
add_compile_options(-fPIC)
+ add_compile_options(-fvisibility=hidden)
endif()
-add_compile_options(-fvisibility=hidden)
-
include(../setup.cmake)
# Include directories
{
m_properties[property.first] = property.second.is_string()
? property.second.as_string()
- : property.second.to_string();
+ : property.second.serialize();
}
}
{
pal::string_t arg = argv[arg_i];
pal::string_t arg_lower = pal::to_lower(arg);
- if (std::find_if(known_opts.begin(), known_opts.end(),
- [&value_to_look = arg_lower]
- (const host_option& hostoption) -> bool { return value_to_look == hostoption.option; })
+ if (std::find_if(known_opts.begin(), known_opts.end(),
+ [&](const host_option& hostoption) { return arg_lower == hostoption.option; })
== known_opts.end())
{
// Unknown argument.
.HaveStdErrContaining($"dotnet exec needs a managed .dll or .exe extension. The application specified was '{assemblyName}'");
}
+ [Fact]
+ public void Detect_Missing_Argument_Value()
+ {
+ var fixture = PreviouslyBuiltAndRestoredPortableTestProjectFixture
+ .Copy();
+
+ var dotnet = fixture.BuiltDotnet;
+
+ dotnet.Exec("--fx-version")
+ .CaptureStdOut()
+ .CaptureStdErr()
+ .Execute()
+ .Should()
+ .Fail()
+ .And
+ .HaveStdErrContaining($"Failed to parse supported options or their values:");
+ }
// Return a non-exisitent path that contains a mix of / and \
private string GetNonexistentAndUnnormalizedPath()